summaryrefslogtreecommitdiff
path: root/doc/en_US/coding-standards.markdown
blob: 0ee3ecd6c5c7f6cfedcedfecff5ee3e22642a4eb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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`