Skip to content

Commit

Permalink
Backport Fixed bug #1890
Browse files Browse the repository at this point in the history
  • Loading branch information
photodude authored Feb 9, 2018
1 parent fed288d commit 58c6ac5
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ public function register()
T_ELSEIF,
T_TRY,
T_CATCH,
T_FINALLY,
);

}//end register()
Expand Down Expand Up @@ -301,6 +302,7 @@ public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr)
} else if ($tokens[$trailingContent]['code'] !== T_ELSE
&& $tokens[$trailingContent]['code'] !== T_ELSEIF
&& $tokens[$trailingContent]['code'] !== T_CATCH
&& $tokens[$trailingContent]['code'] !== T_FINALLY
&& $tokens[$trailingContent]['line'] === ($tokens[$scopeCloser]['line'] + 1)
) {
$error = 'No blank line found after control structure';
Expand Down

0 comments on commit 58c6ac5

Please sign in to comment.