djoos / Symfony-coding-standard

Development repository for the Symfony coding standard
MIT License
401 stars 102 forks source link

add Generic.Formatting.SpaceAfterNot #154

Closed mmoll closed 5 years ago

mmoll commented 5 years ago

https://symfony.com/doc/current/contributing/code/standards.html says "Place unary operators (!, --, ...) adjacent to the affected variable;".

Symfony.ControlStructure.UnaryOperatorsSniff does not contain the ! (on purpose?) and has no autofixer, so i think it's better this way.

/cc @djoos @xalopp

djoos commented 5 years ago

Thanks for your contribution @mmoll!