Skip to content

Commit

Permalink
Merge branch 'inline-else' of https://github.com/klausi/PHP_CodeSniffer
Browse files Browse the repository at this point in the history
  • Loading branch information
gsherwood committed Nov 19, 2012
2 parents c55c754 + 27f1c2b commit 81b7567
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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()) {};

Expand Down

0 comments on commit 81b7567

Please sign in to comment.