It is mainly PSR-2 with a few exceptions.
- Opening braces MUST go on the same line, and MUST NOT have spaces before.
else if
MUST be written aselseif
. (It is in PSR-2, but using a SHOULD)- Control structure keywords or opening braces MUST NOT have one space before or after them.
- Code MUST use tabs for indenting.
- Long arrays MAY be split across multiple lines, where each subsequent line is indented once.
- Files MUST use only the
<?php
tag. - Files MUST NOT have an ending
?>
tag. - Code MUST use namespaces.