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

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