@@ 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 |
@@ 863-870 (lines=8) @@ | ||
860 | ||
861 | // PHP has a max nesting level for functions. Stop before we hit that limit |
|
862 | // because too many loops means we've run into trouble anyway. |
|
863 | if ($depth > 50) { |
|
864 | if (PHP_CodeSniffer_VERBOSITY > 1) { |
|
865 | echo str_repeat("\t", $depth); |
|
866 | echo '* reached maximum nesting level; aborting *'.PHP_EOL; |
|
867 | } |
|
868 | ||
869 | throw new RuntimeException('Maximum nesting level reached; file could not be processed'); |
|
870 | } |
|
871 | ||
872 | $oldDepth = $depth; |
|
873 | if ($isShared === true |