From d70ad1230b2348ac394715afecdca25e66ddf125 Mon Sep 17 00:00:00 2001 From: Marc Alexander Date: Mon, 8 Jun 2015 10:07:12 +0200 Subject: [PATCH] [ticket/13930] Remove not needed return statements PHPBB3-13930 --- .../phpbb/Sniffs/ControlStructures/OpeningParenthesisSniff.php | 2 -- 1 file changed, 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; } } }