Code Duplication    Length = 8-8 lines in 2 locations

src/Ruleset.php 1 location

@@ 576-583 (lines=8) @@
573
    {
574
        // Ignore internal sniffs codes as they are used to only
575
        // hide and change internal messages.
576
        if (substr($ref, 0, 9) === 'Internal.') {
577
            if (PHP_CodeSniffer_VERBOSITY > 1) {
578
                echo str_repeat("\t", $depth);
579
                echo "\t\t* ignoring internal sniff code *".PHP_EOL;
580
            }
581
582
            return array();
583
        }
584
585
        // As sniffs can't begin with a full stop, assume references in
586
        // this format are relative paths and attempt to convert them

src/Tokenizers/Tokenizer.php 1 location

@@ 834-841 (lines=8) @@
831
832
                    // PHP has a max nesting level for functions. Stop before we hit that limit
833
                    // because too many loops means we've run into trouble anyway.
834
                    if ($depth > 50) {
835
                        if (PHP_CodeSniffer_VERBOSITY > 1) {
836
                            echo str_repeat("\t", $depth);
837
                            echo '* reached maximum nesting level; aborting *'.PHP_EOL;
838
                        }
839
840
                        throw new RuntimeException('Maximum nesting level reached; file could not be processed');
841
                    }
842
843
                    $oldDepth = $depth;
844
                    if ($isShared === true