mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-17 07:01:22 +02:00
[ticket/13930] Remove not needed return statements
PHPBB3-13930
This commit is contained in:
@@ -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;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user