Skip to content
On this page

BooleanOperatorPlacement

Checks that control structures have boolean operators in the correct place.

Scope

PSR12.ControlStructures.BooleanOperatorPlacement

Properties

Property NameTypeDefaultAvailable Since
allowOnlyboolnull3.5.4

Usage

xml
<rule ref="PSR12.ControlStructures.BooleanOperatorPlacement">
    <properties>
        <property name="allowOnly" value="first" />
    </properties>
</rule>

Examples

No Examples Available

Please edit this page through Github to add examples.

Released under the MIT License.