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

Slevomat Coding Standard for PHP_CodeSniffer provides many useful sniffs

Results 146 coding-standard issues
Sort by recently updated
recently updated
newest added

Improve: https://github.com/slevomat/coding-standard/issues/1230

Enhancement

hi, I noticed the following file is not correctly handled by autofixing the violation `Namespaces.ReferenceUsedNamesOnly.ReferenceViaFullyQualifiedName` and actually breaks the application. ``` namespace App; class Application extends \Illuminate\Foundation\Application { } ```...

Enhancement

Interfaces can be extremely simple, classes not so much and traits differ. The need to adhere to the same code styles for each of these, while uniform, isn't always ideal....

Currently, `UselessParentheses` reports the parenthesis on `$a + ($b + $c)`. In many cases such parentheses can be omitted, since addition is associative, thus writing `$a + $b + $c`...

Hi is it possible to add exclude Path/file not for all class but configure by class ``` return [ 'preset' => 'symfony', 'ide' => 'phpstorm', 'exclude' => [ 'migrations', //...

Hello. I'd like to have my PHPUnit `protected function setUp` method placed before public test methods. But it looks like it is not possible to configure something like an exception...

Enhancement