D3R / standards

D3R Coding standards
1 stars 2 forks source link

Exclude the spacing around control structures rule for PSR-12 compatibility #9

Closed dmnc closed 4 years ago

dmnc commented 4 years ago

PSR-12 wants

if (
    $a === $b
    && $c === $d
) {
    // blah
}

but PSR-2 wants no space after the opening bracket:

if ($a === $b
    && $c === $d
) {
    // blah
}

Either way, one of them will give us an error.

Other suggestions for how to resolve this conflict are very welcome.