yii-coding-standard
yii-coding-standard copied to clipboard
Yii 1.x coding standard for Allman structure not in standards file
According to the docs at https://github.com/yiisoft/yii/wiki/Core-framework-code-style, the structure for braces should follow Allman structure at http://en.wikipedia.org/wiki/Indent_style#Allman_style
if (x == y) { something(); somethingelse(); }
However, this structure will error ERROR | Expected "if (...) {\n"; found "if(...)\n{\n"
using the coding standard files, it's wanting the following:
if (x == y) { something(); somethingelse(); }