[ticket/13930] Remove not needed return statements

PHPBB3-13930
This commit is contained in:
Marc Alexander 2015-06-08 10:07:12 +02:00
parent 9203bf3141
commit d70ad1230b

View file

@ -50,13 +50,11 @@ class phpbb_Sniffs_ControlStructures_OpeningParenthesisSniff implements PHP_Code
{ {
$error = 'There should be exactly one space between the keyword and opening parenthesis'; $error = 'There should be exactly one space between the keyword and opening parenthesis';
$phpcsFile->addError($error, $stackPtr, 'NoSpaceBeforeOpeningParenthesis'); $phpcsFile->addError($error, $stackPtr, 'NoSpaceBeforeOpeningParenthesis');
return;
} }
else if ($tokens[$stackPtr + 1]['content'] !== ' ') else if ($tokens[$stackPtr + 1]['content'] !== ' ')
{ {
$error = 'There should be exactly one space between the keyword and opening parenthesis'; $error = 'There should be exactly one space between the keyword and opening parenthesis';
$phpcsFile->addError($error, $stackPtr, 'IncorrectSpaceBeforeOpeningParenthesis'); $phpcsFile->addError($error, $stackPtr, 'IncorrectSpaceBeforeOpeningParenthesis');
return;
} }
} }
} }