inpsyde / php-coding-standards

Style guide for writing consistent PHP for WordPress projects.
MIT License
98 stars 23 forks source link

[Feature Request]: Enforce no space after negation operator #92

Closed antonioeatgoat closed 2 months ago

antonioeatgoat commented 4 months ago

Is your feature request related to a problem?

At the current moment, we don't have any specific rule for spaces after the negation operator.

This means that the following cases are both accepted:

Describe the desired solution

No space should be enforced.

For the implementation, it is possible to use the existing SlevomatCodingStandard.Operators.NegationOperatorSpacing, which allows to configure the number of expected spaces.

Describe the alternatives that you have considered

Either having the space or not, but not both cases accepted.

Additional context

No response

Code of Conduct