Rule ternary_operator_spaces Standardize spaces around ternary operator. Examples Example #1 --- Original +++ New -<?php $a = $a ?1 :0; +<?php $a = $a ? 1 : 0; Rule sets The rule is part of the following rule sets: @PER @PER-CS @PER-CS1.0 @PER-CS2.0 @PSR12 @PhpCsFixer @Symfony Source class PhpCsFixer\Fixer\Operator\TernaryOperatorSpacesFixer