Code Duplication    Length = 5-7 lines in 2 locations

PHPCompatibility/Sniffs/Lists/AssignmentOrderSniff.php 1 location

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