Code Duplication    Length = 5-7 lines in 2 locations

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);

PHPCompatibility/Sniffs/Lists/AssignmentOrderSniff.php 1 location

@@ 73-79 (lines=7) @@
70
71
        if ($tokens[$stackPtr]['code'] === T_LIST) {
72
            $nextNonEmpty = $phpcsFile->findNext(\PHP_CodeSniffer_Tokens::$emptyTokens, ($stackPtr + 1), null, true);
73
            if ($nextNonEmpty === false
74
                || $tokens[$nextNonEmpty]['code'] !== T_OPEN_PARENTHESIS
75
                || isset($tokens[$nextNonEmpty]['parenthesis_closer']) === false
76
            ) {
77
                // Parse error or live coding.
78
                return;
79
            }
80
81
            $opener = $nextNonEmpty;
82
            $closer = $tokens[$nextNonEmpty]['parenthesis_closer'];