coding-standard
coding-standard copied to clipboard
Refine rules
Squiz.WhiteSpace.CastSpacing
This is included in PSR-12.
vendor/bin/phpcs --standard=PSR12 -e
Squiz (15 sniffs)
-----------------
Squiz.Classes.ValidClassName
Squiz.ControlStructures.ControlSignature
Squiz.ControlStructures.ForEachLoopDeclaration
Squiz.ControlStructures.ForLoopDeclaration
Squiz.ControlStructures.LowercaseDeclaration
Squiz.Functions.FunctionDeclaration
Squiz.Functions.FunctionDeclarationArgumentSpacing
Squiz.Functions.LowercaseFunctionKeywords
Squiz.Functions.MultiLineFunctionDeclaration
Squiz.Scope.MethodScope
Squiz.WhiteSpace.CastSpacing
Squiz.WhiteSpace.ControlStructureSpacing
Squiz.WhiteSpace.ScopeClosingBrace
Squiz.WhiteSpace.ScopeKeywordSpacing
Squiz.WhiteSpace.SuperfluousWhitespace
PSR2.ControlStructures.ControlStructureSpacing
This is not included in PSR-12.
vendor/bin/phpcs --standard=PSR12 -e
PSR2 (9 sniffs)
---------------
PSR2.Classes.ClassDeclaration
PSR2.Classes.PropertyDeclaration
PSR2.ControlStructures.ElseIfDeclaration
PSR2.ControlStructures.SwitchDeclaration
PSR2.Files.ClosingTag
PSR2.Files.EndFileNewline
PSR2.Methods.FunctionCallSignature
PSR2.Methods.FunctionClosingBrace
PSR2.Methods.MethodDeclaration
This is not included in PSR-12.
Then how does it make PSR2.ControlStructures.ControlStructureSpacing.SpacingAfterOpenBrace
unnecessary?
Then how does it make
PSR2.ControlStructures.ControlStructureSpacing.SpacingAfterOpenBrace
unnecessary?
It is included in PSR2.ControlStructures.ControlStructureSpacing
and is not installed.
And it is checked by PSR12.ControlStructures.ControlStructureSpacing
.
Do you need it?
@carusogabriel , you introduced that line, can you maybe chime in?