Skip to content

Commit

Permalink
Reflect coding standards new rules
Browse files Browse the repository at this point in the history
  • Loading branch information
trasher committed Jun 29, 2017
1 parent 40edd76 commit 0cc3c52
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion source/codingstandards.rst
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,15 @@ Multiple conditions in several idented lines
echo "Default Case";
}
Arrays
------
Arrays must be declared using the short notation syntax (``[]``), long notation (``array()``) is forbidden.
true, false and null
--------------------
``true``, ``false`` and ``null`` constants mut be lowercase.
Including files
---------------
Expand Down Expand Up @@ -93,10 +102,12 @@ Function names must be written in *camelCaps*:
.. code-block:: php
<?php
function userName($a, $b) {
function userName($a, $b = 'foo') {
//do something here!
}
Space after opening parenthesis and before closing parenthesis are forbidden. For parematers which have a default value; add a space before and after the equel sign.

If parameters add block doc for these parameters, please see the `Comments`_ section for any example.

If function from parent add
Expand Down

0 comments on commit 0cc3c52

Please sign in to comment.