2015-09-13 12:36:05 +02:00
|
|
|
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
|
2015-10-26 14:48:27 +01:00
|
|
|
- Coding style: [PSR-1](http://www.php-fig.org/psr/psr-1/) and [PSR-2](http://www.php-fig.org/psr/psr-2/)
|
2015-09-13 12:36:05 +02:00
|
|
|
|
|
|
|
Javascript code
|
|
|
|
---------------
|
|
|
|
|
|
|
|
- Indentation: 4 spaces
|
|
|
|
- Line return: Unix => `\n`
|
|
|
|
|
|
|
|
CSS code
|
|
|
|
--------
|
|
|
|
|
|
|
|
- Indentation: 4 spaces
|
|
|
|
- Line return: Unix => `\n`
|