Code Duplication    Length = 5-7 lines in 2 locations

PHPCompatibility/Sniffs/Lists/NewKeyedListSniff.php 1 location

@@ 80-86 (lines=7) @@
77
78
        if ($tokens[$stackPtr]['code'] === T_LIST) {
79
            $nextNonEmpty = $phpcsFile->findNext(\PHP_CodeSniffer_Tokens::$emptyTokens, ($stackPtr + 1), null, true);
80
            if ($nextNonEmpty === false
81
                || $tokens[$nextNonEmpty]['code'] !== T_OPEN_PARENTHESIS
82
                || isset($tokens[$nextNonEmpty]['parenthesis_closer']) === false
83
            ) {
84
                // Parse error or live coding.
85
                return;
86
            }
87
88
            $opener = $nextNonEmpty;
89
            $closer = $tokens[$nextNonEmpty]['parenthesis_closer'];

PHPCompatibility/Sniffs/PHP/ForbiddenCallTimePassByReferenceSniff.php 1 location

@@ 125-129 (lines=5) @@
122
            true
123
        );
124
125
        if ($openBracket === false || $tokens[$openBracket]['code'] !== T_OPEN_PARENTHESIS
126
            || isset($tokens[$openBracket]['parenthesis_closer']) === false
127
        ) {
128
            return;
129
        }
130
131
        // Get the function call parameters.
132
        $parameters = $this->getFunctionCallParameters($phpcsFile, $stackPtr);