coding-standard
coding-standard copied to clipboard
Slevomat Coding Standard for PHP_CodeSniffer provides many useful sniffs
I know that PHP supports skipping elements when destructuring from an array: ```php $array = [1, 2, 3]; [, , $c] = $array; ``` However, I often find it nice...
Hello, first and foremost: thanks for this great package, it's a great help for our codebase! I'd like to dip my toes in the water with the `SlevomatCodingStandard.Classes.ClassStructure` sniff &...
Hello, Would it be possible to create a rule to ensure an argument is always present on some functions? What I'm trying to accomplish is to ensure `ENT_QUOTES` is always...
Hello, Would it be possible to create a rule so that we can enforce a modifier to be always present in `preg_*` functions? I would like to ensure the "u"...
Seems this is not possible now? :( (tested on latest) 
This would allow us at https://github.com/MyIntervals/emogrifier to use PHP_CodeSniffer as a PHAR and then add the Slevomat coding standard as an additional PHAR. (Currently, we still need to require PHP_CodeSniffer...
Hi, Have you thought about implementing fixers for standardizing doctrine annotation formatting as per [this php-cs-fixer set](https://github.com/FriendsOfPHP/PHP-CS-Fixer/blob/ddd873eeef59aedfeccace39b3463dc01f6c3d33/src/RuleSet.php#L284-L292) I'm migrating to phpcs, and this was one obvious omission. Thanks!
I think it would be nice to have a sniffer which checks if the user added a dollar sign in the property declaration. E.g: ```php /** * My Class *...
Since phpcs-calisthenics-rules has been deprecated, I was thinking if this package would be interested in taking over the maintain-work of some of their sniffs? I think they had a bunch...