summaryrefslogtreecommitdiff
path: root/doc/en_US/coding-standards.markdown
diff options
context:
space:
mode:
Diffstat (limited to 'doc/en_US/coding-standards.markdown')
-rw-r--r--doc/en_US/coding-standards.markdown24
1 files changed, 24 insertions, 0 deletions
diff --git a/doc/en_US/coding-standards.markdown b/doc/en_US/coding-standards.markdown
new file mode 100644
index 00000000..0ee3ecd6
--- /dev/null
+++ b/doc/en_US/coding-standards.markdown
@@ -0,0 +1,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`