Language and development rules: Difference between revisions

Jump to navigation Jump to search
m
Line 77: Line 77:
*** Smart tags PHP are not used. PHP code section must start with '''<?php'''
*** Smart tags PHP are not used. PHP code section must start with '''<?php'''
** You can use the file dev/codesniffer/ruleset.xml as rule file to control coding style with PHPCodeSniffer.
** You can use the file dev/codesniffer/ruleset.xml as rule file to control coding style with PHPCodeSniffer.
** You may note that current code is not yet compliant with this rule. The reason is that we must "now" follow the PSR-2, but it wasn't in the past. So feel free to change coding style to match new rules.
** You may note that current code is not yet compliant with this rule. The reason is that we must "now" follow the PSR-2, but it wasn't in the past. So feel free to change coding style to match new rules if you find such cases.


== Classes and properties structures ==
== Classes and properties structures ==

Navigation menu