yii-coding-standard icon indicating copy to clipboard operation
yii-coding-standard copied to clipboard

Yii 1.x coding standard for Allman structure not in standards file

Open ktwbc opened this issue 10 years ago • 0 comments

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(); }

ktwbc avatar Mar 24 '14 17:03 ktwbc