Skip to content

Commit

Permalink
Fix verbosity levels
Browse files Browse the repository at this point in the history
  • Loading branch information
adriendupuis committed May 4, 2020
1 parent ac1f7c0 commit bae8ce3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/DefaultSingleCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ protected function execute(InputInterface $input, OutputInterface $output)
default:
$config = Yaml::parse(file_get_contents($configFile));
}
} else {
$output->writeln("<error>Config file $configFile doesn't exist or isn't a file.</error>");
} else if (!$output->isQuiet()) {
$output->writeln("<warning>Config file $configFile doesn't exist or isn't a file.</warning>");
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions src/ExerciseCleaner.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ public function cleanCodeLines(array $lines, float $targetStep = 1, bool $soluti
if (count($nestedTags)) {
$currentTag = $nestedTags[count($nestedTags) - 1];
$this->outputWrite("Reenter step {$currentTag['step']}".($currentTag['name'] ? "{$currentTag['name']}" : '')." at line $lineIndex:", OutputInterface::VERBOSITY_VERBOSE);
$this->outputWrite($this->getActionVerb($currentTag, $targetStep).'');
$this->outputWrite($this->getActionVerb($currentTag, $targetStep).'', OutputInterface::VERBOSITY_VERBOSE);
}
} elseif (false !== strpos($line, $this->startTagConstant)) {
$matches = [];
Expand Down Expand Up @@ -126,7 +126,7 @@ public function cleanCodeLines(array $lines, float $targetStep = 1, bool $soluti
}

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

0 comments on commit bae8ce3

Please sign in to comment.