1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/kanboard_ynh.git synced 2024-09-03 19:36:17 +02:00
kanboard_ynh/sources/doc/coding-standards.markdown
2015-12-29 01:24:09 +01:00

24 lines
535 B
Markdown

Coding standards
================
PHP code
--------
- Indentation: 4 spaces
- Line return: Unix => `\n`
- Encoding: UTF-8
- Use only the opening tags `<?php` or `<?=` for templates, but **never** use `<?`
- Always write PHPdoc comments for methods and class properties
- Coding style: [PSR-1](http://www.php-fig.org/psr/psr-1/) and [PSR-2](http://www.php-fig.org/psr/psr-2/)
JavaScript code
---------------
- Indentation: 4 spaces
- Line return: Unix => `\n`
CSS code
--------
- Indentation: 4 spaces
- Line return: Unix => `\n`