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

Yii Framework PHP CodeSniffer Coding Standard

Results 4 yii-coding-standard issues
Sort by recently updated
recently updated
newest added

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',...