Code Duplication    Length = 5-5 lines in 2 locations

PHPCompatibility/PHPCSHelper.php 1 location

@@ 165-169 (lines=5) @@
162
                }
163
164
                $i = $tokens[$i]['scope_closer'];
165
            } elseif (isset($tokens[$i]['bracket_closer']) === true
166
                && $i === $tokens[$i]['bracket_opener']
167
            ) {
168
                $i = $tokens[$i]['bracket_closer'];
169
            } elseif (isset($tokens[$i]['parenthesis_closer']) === true
170
                && $i === $tokens[$i]['parenthesis_opener']
171
            ) {
172
                $i = $tokens[$i]['parenthesis_closer'];

PHPCompatibility/Sniffs/Lists/NewKeyedListSniff.php 1 location

@@ 166-170 (lines=5) @@
163
                ) {
164
                    $i = $tokens[$nextNonEmpty]['parenthesis_closer'];
165
                }
166
            } elseif ($tokens[$i]['code'] === T_OPEN_SHORT_ARRAY
167
                && isset($tokens[$i]['bracket_closer'])
168
            ) {
169
                $i = $tokens[$i]['bracket_closer'];
170
            }
171
        }
172
173
        return false;