Skip to content

Commit

Permalink
Show all usages when --show-all-usages is combined with --verbose (#160)
Browse files Browse the repository at this point in the history
  • Loading branch information
janedbal committed Jul 9, 2024
1 parent abd8367 commit 8875c57
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions src/Result/ConsoleFormatter.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,14 @@ public function format(

private function getMaxUsagesShownForErrors(CliOptions $options): int
{
if ($options->verbose === true) {
return self::VERBOSE_SHOWN_USAGES;
}

if ($options->showAllUsages === true) {
return PHP_INT_MAX;
}

if ($options->verbose === true) {
return self::VERBOSE_SHOWN_USAGES;
}

return 1;
}

Expand Down
8 changes: 4 additions & 4 deletions src/Result/JunitFormatter.php
Original file line number Diff line number Diff line change
Expand Up @@ -133,14 +133,14 @@ public function format(

private function getMaxUsagesShownForErrors(CliOptions $options): int
{
if ($options->verbose === true) {
return self::VERBOSE_SHOWN_USAGES;
}

if ($options->showAllUsages === true) {
return PHP_INT_MAX;
}

if ($options->verbose === true) {
return self::VERBOSE_SHOWN_USAGES;
}

return 1;
}

Expand Down

0 comments on commit 8875c57

Please sign in to comment.