Skip to content

Commit a047303

Browse files
authored
Merge pull request #202 from andreaswolf/199-fix-progress
Only advance progress once per file
2 parents d1ca027 + 1013638 commit a047303

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/fractor/src/Application/FractorRunner.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,10 @@ public function run(Output $output, Configuration $configuration): void
4949
$file = new File($filePath, FileSystem::read($filePath));
5050
$this->fileCollector->addFile($file);
5151

52+
if (! $configuration->isQuiet()) {
53+
$output->progressAdvance();
54+
}
5255
foreach ($this->processors as $processor) {
53-
if (! $configuration->isQuiet()) {
54-
$output->progressAdvance();
55-
}
5656
if (! $processor->canHandle($file)) {
5757
continue;
5858
}

0 commit comments

Comments
 (0)