Skip to content

Commit

Permalink
[Contributing] [Standards] Added entry for identical comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
phansys authored and xabbuh committed Jun 28, 2015
1 parent b839ce6 commit bacd22e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions contributing/code/standards.rst
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,8 @@ Structure

* Place unary operators (``!``, ``--``, ...) adjacent to the affected variable;

* Always use `identical comparison`_ unless you need type juggling;

* Add a comma after each array item in a multi-line array, even after the
last one;

Expand Down Expand Up @@ -186,3 +188,4 @@ License
.. _`PSR-1`: http://www.php-fig.org/psr/psr-1/
.. _`PSR-2`: http://www.php-fig.org/psr/psr-2/
.. _`PSR-4`: http://www.php-fig.org/psr/psr-4/
.. _`identical comparison`: https://php.net/manual/en/language.operators.comparison.php

0 comments on commit bacd22e

Please sign in to comment.