Code Duplication    Length = 3-5 lines in 2 locations

PHPCompatibility/Sniffs/FunctionUse/ArgumentFunctionsReportCurrentValueSniff.php 1 location

@@ 396-400 (lines=5) @@
393
                ) {
394
                    // Skip past array access on the variable.
395
                    while (($afterVar = $phpcsFile->findNext(Tokens::$emptyTokens, ($tokens[$afterVar]['bracket_closer'] + 1), null, true)) !== false) {
396
                        if ($tokens[$afterVar]['code'] !== T_OPEN_SQUARE_BRACKET
397
                            || isset($tokens[$afterVar]['bracket_closer']) === false
398
                        ) {
399
                            break;
400
                        }
401
                    }
402
                }
403

PHPCompatibility/Sniffs/Variables/NewUniformVariableSyntaxSniff.php 1 location

@@ 59-61 (lines=3) @@
56
        // Verify that the next token is a square open bracket. If not, bow out.
57
        $nextToken = $phpcsFile->findNext(\PHP_CodeSniffer_Tokens::$emptyTokens, ($stackPtr + 1), null, true, null, true);
58
59
        if ($nextToken === false || $tokens[$nextToken]['code'] !== T_OPEN_SQUARE_BRACKET || isset($tokens[$nextToken]['bracket_closer']) === false) {
60
            return;
61
        }
62
63
        // The previous non-empty token has to be a $, -> or ::.
64
        $prevToken = $phpcsFile->findPrevious(\PHP_CodeSniffer_Tokens::$emptyTokens, ($stackPtr - 1), null, true, null, true);