|
@@ 305-311 (lines=7) @@
|
| 302 |
|
// Running normally. |
| 303 |
|
foreach ($todo as $path => $file) { |
| 304 |
|
$currDir = dirname($path); |
| 305 |
|
if ($lastDir !== $currDir) { |
| 306 |
|
if (PHP_CodeSniffer_VERBOSITY > 0 || (PHP_CodeSniffer_CBF === true && $this->config->stdin === false)) { |
| 307 |
|
echo 'Changing into directory '.Common::stripBasepath($currDir, $this->config->basepath).PHP_EOL; |
| 308 |
|
} |
| 309 |
|
|
| 310 |
|
$lastDir = $currDir; |
| 311 |
|
} |
| 312 |
|
|
| 313 |
|
$this->processFile($file); |
| 314 |
|
|
|
@@ 407-413 (lines=7) @@
|
| 404 |
|
$file = $todo->current(); |
| 405 |
|
|
| 406 |
|
$currDir = dirname($path); |
| 407 |
|
if ($lastDir !== $currDir) { |
| 408 |
|
if (PHP_CodeSniffer_VERBOSITY > 0 || (PHP_CodeSniffer_CBF === true && $this->config->stdin === false)) { |
| 409 |
|
echo 'Changing into directory '.Common::stripBasepath($currDir, $this->config->basepath).PHP_EOL; |
| 410 |
|
} |
| 411 |
|
|
| 412 |
|
$lastDir = $currDir; |
| 413 |
|
} |
| 414 |
|
|
| 415 |
|
$this->processFile($file); |
| 416 |
|
|