Code Duplication    Length = 4-6 lines in 2 locations

Sniffs/PHP/ForbiddenParenthesisAroundFunctionParametersSniff.php 2 locations

@@ 100-103 (lines=4) @@
97
            while (($nextComma = $phpcsFile->findNext(T_COMMA, ($nextSeparator + 1), $closeBracket)) !== false) {
98
                // Find every argument along the way, check if there are parenthesis around them
99
                
100
                if ($tokens[$nextSeparator + 1]['code'] == T_OPEN_PARENTHESIS && $tokens[$nextComma - 1]['code'] == T_CLOSE_PARENTHESIS) {
101
                    $error = 'Parentheses around function parameters throws warning in PHP 7.0';
102
                    $phpcsFile->addWarning($error, $nextSeparator + 1);
103
                }
104
                
105
                $nextSeparator = $nextComma;
106
            }//end while
@@ 109-114 (lines=6) @@
106
            }//end while
107
            
108
            $nextOpen = $phpcsFile->findNext(T_OPEN_PARENTHESIS, $nextSeparator + 1, $closeBracket);
109
            if ($nextOpen !== false) {
110
                if ($tokens[$nextOpen]['code'] == T_OPEN_PARENTHESIS && $tokens[$closeBracket - 1]['code'] == T_CLOSE_PARENTHESIS) {
111
                    $error = 'Parentheses around function parameters throws warning in PHP 7.0';
112
                    $phpcsFile->addWarning($error, $nextSeparator + 1);
113
                }
114
            }
115
        }
116
    }//end process()
117