Skip to content

Commit 8875c57

Browse files
authored
Show all usages when --show-all-usages is combined with --verbose (#160)
1 parent abd8367 commit 8875c57

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

src/Result/ConsoleFormatter.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,14 +53,14 @@ public function format(
5353

5454
private function getMaxUsagesShownForErrors(CliOptions $options): int
5555
{
56-
if ($options->verbose === true) {
57-
return self::VERBOSE_SHOWN_USAGES;
58-
}
59-
6056
if ($options->showAllUsages === true) {
6157
return PHP_INT_MAX;
6258
}
6359

60+
if ($options->verbose === true) {
61+
return self::VERBOSE_SHOWN_USAGES;
62+
}
63+
6464
return 1;
6565
}
6666

src/Result/JunitFormatter.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -133,14 +133,14 @@ public function format(
133133

134134
private function getMaxUsagesShownForErrors(CliOptions $options): int
135135
{
136-
if ($options->verbose === true) {
137-
return self::VERBOSE_SHOWN_USAGES;
138-
}
139-
140136
if ($options->showAllUsages === true) {
141137
return PHP_INT_MAX;
142138
}
143139

140+
if ($options->verbose === true) {
141+
return self::VERBOSE_SHOWN_USAGES;
142+
}
143+
144144
return 1;
145145
}
146146

0 commit comments

Comments
 (0)