yii-coding-standard
yii-coding-standard copied to clipboard
Yii Framework PHP CodeSniffer Coding Standard
Thanks for your good job. But i use vscode to compile and debug. Could you give some suggestion on how to configure in vscode?
Hi, SingleLineWithoutBracesSniff generates a false positive on every do-while structure. (Ironically, SingleLineWithoutBracesSniff class file contains such structure, so can be used to reproduce the issue.) This is due to registering...
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...
``` public function testMethod() { if (true) return true; else return setFalse(); } ``` This triggers a false alarm. Suggested fix: ``` $newline = false; while (in_array($tokens[$closeBracket + $n]['type'], array('T_WHITESPACE',...