aik099 / CodingStandard

The PHP_CodeSniffer coding standard I'm using on all of my projects
BSD 3-Clause "New" or "Revised" License
5 stars 2 forks source link

Sequential "catch" statements are reported as error #95

Closed aik099 closed 8 years ago

aik099 commented 8 years ago

Code fragment:

try {
    // code here
}
catch ( ExceptionOne $e ) {
    throw $e;
}
catch ( \Exception $e ) {
    return false;
}

Sniff: CodingStandard.WhiteSpace.ControlStructureSpacing.NoLineBeforeOpen