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

Shorthand ternary operator validation #53

Open aik099 opened 9 years ago

aik099 commented 9 years ago

The shorthand ternary operator was introduced in PHP 5.3 and is regular ternary operator with TRUE part missing: $value ?: $default. Need to validate/fix, that no whitespace are present between ? and : if whitespace is the only content between them.