aboutsummaryrefslogtreecommitdiffstats
path: root/build/code_sniffer/phpbb
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2015-06-08 10:07:12 +0200
committerMarc Alexander <admin@m-a-styles.de>2015-06-08 10:07:12 +0200
commitd70ad1230b2348ac394715afecdca25e66ddf125 (patch)
tree2b120ecef7f1c7a2d379198b6b7f732b9657532c /build/code_sniffer/phpbb
parent9203bf3141851812bbef9cff3a2634d9849d8f44 (diff)
downloadforums-d70ad1230b2348ac394715afecdca25e66ddf125.tar
forums-d70ad1230b2348ac394715afecdca25e66ddf125.tar.gz
forums-d70ad1230b2348ac394715afecdca25e66ddf125.tar.bz2
forums-d70ad1230b2348ac394715afecdca25e66ddf125.tar.xz
forums-d70ad1230b2348ac394715afecdca25e66ddf125.zip
[ticket/13930] Remove not needed return statements
PHPBB3-13930
Diffstat (limited to 'build/code_sniffer/phpbb')
-rw-r--r--build/code_sniffer/phpbb/Sniffs/ControlStructures/OpeningParenthesisSniff.php2
1 files changed, 0 insertions, 2 deletions
diff --git a/build/code_sniffer/phpbb/Sniffs/ControlStructures/OpeningParenthesisSniff.php b/build/code_sniffer/phpbb/Sniffs/ControlStructures/OpeningParenthesisSniff.php
index 955405ce01..349bccbb02 100644
--- a/build/code_sniffer/phpbb/Sniffs/ControlStructures/OpeningParenthesisSniff.php
+++ b/build/code_sniffer/phpbb/Sniffs/ControlStructures/OpeningParenthesisSniff.php
@@ -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';
$phpcsFile->addError($error, $stackPtr, 'NoSpaceBeforeOpeningParenthesis');
- return;
}
else if ($tokens[$stackPtr + 1]['content'] !== ' ')
{
$error = 'There should be exactly one space between the keyword and opening parenthesis';
$phpcsFile->addError($error, $stackPtr, 'IncorrectSpaceBeforeOpeningParenthesis');
- return;
}
}
}