Skip to content

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
@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

Development

Successfully merging this pull request may close these issues.

1 participant