Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ruleset: configure PSR12.ControlStructures.BooleanOperatorPlacement sniff #36

Merged
merged 1 commit into from
Jul 25, 2023

Conversation

jrfnl
Copy link
Member

@jrfnl jrfnl commented Jul 25, 2023

Set the allowOnly property for the PSR12.ControlStructures.BooleanOperatorPlacement sniff to "first" to enforce boolean operators to always be at the start of a line, not the end.

This property is available since PHPCS 3.5.4.

@jrfnl jrfnl added this to the 1.x Next Release milestone Jul 25, 2023
@jrfnl jrfnl force-pushed the feature/ruleset-enforce-boolean-operators-at-start branch from 1b2c8d5 to 60c3c10 Compare July 25, 2023 11:11
…niff

Set the `allowOnly` property for the `PSR12.ControlStructures.BooleanOperatorPlacement` sniff to "first" to enforce boolean operators to always be at the start of a line, not the end.

This property is available since PHPCS 3.5.4.
@jrfnl jrfnl force-pushed the feature/ruleset-enforce-boolean-operators-at-start branch from 60c3c10 to 37bcab6 Compare July 25, 2023 11:14
@jrfnl jrfnl merged commit eb59f0a into main Jul 25, 2023
2 checks passed
@jrfnl jrfnl deleted the feature/ruleset-enforce-boolean-operators-at-start branch July 25, 2023 11:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant