Permalink
Browse files

Fixed operator spacing sniff to take the new T_INLINE_ELSE token into…

… account.
  • Loading branch information...
1 parent 51325e9 commit 27f1c2b88386d8e437b641ea772e43b2e685b35d @klausi klausi committed Nov 18, 2012
@@ -159,6 +159,7 @@ public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr)
T_DOUBLE_ARROW,
T_COLON,
T_INLINE_THEN,
+ T_INLINE_ELSE,
T_CASE,
);
@@ -105,6 +105,7 @@ $boo = -$foo;
function foo($boo = -1) {}
$foo = array('boo' => -1);
$x = $test ? -1 : 1;
+$y = $test ? 1 : -1;
$closureWithDefaultParamter = function (array $testArray=array()) {};

0 comments on commit 27f1c2b

Please sign in to comment.