| @@ 46-51 (lines=6) @@ | ||
| 43 | $file = $report['filename']; |
|
| 44 | $tokens = $phpcsFile->getTokens(); |
|
| 45 | if (empty($tokens) === true) { |
|
| 46 | if (PHP_CodeSniffer_VERBOSITY === 1) { |
|
| 47 | $startTime = microtime(true); |
|
| 48 | echo 'CODE report is parsing '.basename($file).' '; |
|
| 49 | } else if (PHP_CodeSniffer_VERBOSITY > 1) { |
|
| 50 | echo "CODE report is forcing parse of $file".PHP_EOL; |
|
| 51 | } |
|
| 52 | ||
| 53 | $phpcsFile->parse(); |
|
| 54 | ||
| @@ 43-48 (lines=6) @@ | ||
| 40 | $phpcsFile->disableCaching(); |
|
| 41 | $tokens = $phpcsFile->getTokens(); |
|
| 42 | if (empty($tokens) === true) { |
|
| 43 | if (PHP_CodeSniffer_VERBOSITY === 1) { |
|
| 44 | $startTime = microtime(true); |
|
| 45 | echo 'DIFF report is parsing '.basename($report['filename']).' '; |
|
| 46 | } else if (PHP_CodeSniffer_VERBOSITY > 1) { |
|
| 47 | echo 'DIFF report is forcing parse of '.$report['filename'].PHP_EOL; |
|
| 48 | } |
|
| 49 | ||
| 50 | $phpcsFile->parse(); |
|
| 51 | ||