| @@ 1020-1027 (lines=8) @@ | ||
| 1017 | { |
|
| 1018 | // Ignore internal sniffs codes as they are used to only |
|
| 1019 | // hide and change internal messages. |
|
| 1020 | if (substr($ref, 0, 9) === 'Internal.') { |
|
| 1021 | if (PHP_CODESNIFFER_VERBOSITY > 1) { |
|
| 1022 | echo str_repeat("\t", $depth); |
|
| 1023 | echo "\t\t* ignoring internal sniff code *".PHP_EOL; |
|
| 1024 | } |
|
| 1025 | ||
| 1026 | return array(); |
|
| 1027 | } |
|
| 1028 | ||
| 1029 | // As sniffs can't begin with a full stop, assume references in |
|
| 1030 | // this format are relative paths and attempt to convert them |
|
| @@ 2207-2214 (lines=8) @@ | ||
| 2204 | ||
| 2205 | // PHP has a max nesting level for functions. Stop before we hit that limit |
|
| 2206 | // because too many loops means we've run into trouble anyway. |
|
| 2207 | if ($depth > 50) { |
|
| 2208 | if (PHP_CODESNIFFER_VERBOSITY > 1) { |
|
| 2209 | echo str_repeat("\t", $depth); |
|
| 2210 | echo '* reached maximum nesting level; aborting *'.PHP_EOL; |
|
| 2211 | } |
|
| 2212 | ||
| 2213 | throw new PHP_CodeSniffer_Exception('Maximum nesting level reached; file could not be processed'); |
|
| 2214 | } |
|
| 2215 | ||
| 2216 | $oldDepth = $depth; |
|
| 2217 | if ($isShared === true |
|