Php_codesniffer: [Feature request] Sniff for class opening braces on same line ?

Created on 14 Jul 2016  路  1Comment  路  Source: squizlabs/PHP_CodeSniffer

Would there be any interest in having a sniff for class opening braces on the same line as the class statement ?
I imagine it could be added to Generic ?

All currently existing sniffs for class opening structures I could find check for the brace on a new line AFAICS.

I'd be happy to send in a PR.

Enhancement

Most helpful comment

These sniff exist for functions and closures, so I don't see any reason why they shouldn't exist for classes and interfaces as well.

>All comments

These sniff exist for functions and closures, so I don't see any reason why they shouldn't exist for classes and interfaces as well.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

justintadlock picture justintadlock  路  3Comments

brzuchal picture brzuchal  路  3Comments

jigius picture jigius  路  3Comments

stephanvierkant picture stephanvierkant  路  3Comments

u01jmg3 picture u01jmg3  路  3Comments