Skip to content

Commit

Permalink
Revert "Eliminate variable"
Browse files Browse the repository at this point in the history
This reverts commit b1104a8.
  • Loading branch information
sebastianbergmann committed Feb 4, 2024
1 parent 178bdd5 commit defd151
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/TextUI/Configuration/Cli/Builder.php
Original file line number Diff line number Diff line change
Expand Up @@ -806,9 +806,9 @@ public function fromParameters(array $parameters): Configuration
break;

case '--log-events-text':
$logEventsText = realpath($option[1]);
$path = realpath($option[1]);

if (!$logEventsText) {
if (!$path) {
throw new Exception(
sprintf(
'The path "%s" specified for the --log-events-text option could not be resolved',
Expand All @@ -817,12 +817,14 @@ public function fromParameters(array $parameters): Configuration
);
}

$logEventsText = $path;

break;

case '--log-events-verbose-text':
$logEventsVerboseText = realpath($option[1]);
$path = realpath($option[1]);

if (!$logEventsVerboseText) {
if (!$path) {
throw new Exception(
sprintf(
'The path "%s" specified for the --log-events-verbose-text option could not be resolved',
Expand All @@ -831,6 +833,8 @@ public function fromParameters(array $parameters): Configuration
);
}

$logEventsVerboseText = $path;

break;

case '--debug':
Expand Down

0 comments on commit defd151

Please sign in to comment.