Skip to content

Commit bae8ce3

Browse files
committed
Fix verbosity levels
1 parent ac1f7c0 commit bae8ce3

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/DefaultSingleCommand.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ protected function execute(InputInterface $input, OutputInterface $output)
5454
default:
5555
$config = Yaml::parse(file_get_contents($configFile));
5656
}
57-
} else {
58-
$output->writeln("<error>Config file $configFile doesn't exist or isn't a file.</error>");
57+
} else if (!$output->isQuiet()) {
58+
$output->writeln("<warning>Config file $configFile doesn't exist or isn't a file.</warning>");
5959
}
6060
}
6161
}

src/ExerciseCleaner.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ public function cleanCodeLines(array $lines, float $targetStep = 1, bool $soluti
9595
if (count($nestedTags)) {
9696
$currentTag = $nestedTags[count($nestedTags) - 1];
9797
$this->outputWrite("Reenter step {$currentTag['step']}".($currentTag['name'] ? "{$currentTag['name']}" : '')." at line $lineIndex:", OutputInterface::VERBOSITY_VERBOSE);
98-
$this->outputWrite($this->getActionVerb($currentTag, $targetStep).'');
98+
$this->outputWrite($this->getActionVerb($currentTag, $targetStep).'', OutputInterface::VERBOSITY_VERBOSE);
9999
}
100100
} elseif (false !== strpos($line, $this->startTagConstant)) {
101101
$matches = [];
@@ -126,7 +126,7 @@ public function cleanCodeLines(array $lines, float $targetStep = 1, bool $soluti
126126
}
127127

128128
$this->outputWrite("Start step $step".($startedTag['name'] ? "{$startedTag['name']}" : '')." at line $lineIndex:", OutputInterface::VERBOSITY_VERBOSE);
129-
$this->outputWrite($this->getActionVerb($startedTag, $targetStep).'');
129+
$this->outputWrite($this->getActionVerb($startedTag, $targetStep).'', OutputInterface::VERBOSITY_VERBOSE);
130130
} elseif (count($nestedTags)) {
131131
$currentTag = $nestedTags[count($nestedTags) - 1];
132132
$step = (float) $currentTag['step'];

0 commit comments

Comments
 (0)