Skip to content

Commit 1013638

Browse files
committedJul 12, 2024··
[BUGFIX] Only advance progress once per file
Resolves: #199
1 parent a32e7aa commit 1013638

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)
Please sign in to comment.