coding-standard
coding-standard copied to clipboard
Slevomat Coding Standard for PHP_CodeSniffer provides many useful sniffs
the MR #987 which would fix exactly this problem was not merged. i have exactly the problem described in this MR, if you structrue you code in an additional `src`...
This PR adds the `SlevomatCodingStandard.Classes.MethodPerClassLimit` sniff which allows the user to limit the number of allowed methods per class, trait, interface or anonymous class. The number of allowed methods can...
Following issue #1099.
Following issue #1099.
If I use `func_get_args` inside a function `SlevomatCodingStandard.Functions.UnusedParameter.UnusedParameter` will return an error. I get why, but I think it should be an exception in this case. if `func_get_args` is used,...
I don't know if/how this one can be fixed, with this file: ```php
Is there a sniff that disallows protected variables and functions (unless they override) in final classes? If so, that's a suggestion :)
Looking to disallow things like: $$variable With two dollar signs. Thank you!
navigation currently consists only of 1. [Sniffs included in this standard](https://github.com/slevomat/coding-standard#sniffs-included-in-this-standard) - [Functional - improving the safety and behaviour of code](https://github.com/slevomat/coding-standard#functional---improving-the-safety-and-behaviour-of-code) - [Cleaning - detecting dead code](https://github.com/slevomat/coding-standard#cleaning---detecting-dead-code) - [Formatting -...
Enable them by default.