Skip to content

Commit 0ac4a9f

Browse files
committed
paste error led to psr2 fail.
1 parent 42adaad commit 0ac4a9f

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

src/Application.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ public function run()
166166
)
167167
);
168168
return 1;
169-
} catch(\RuntimeException $e) {
169+
} catch (\RuntimeException $e) {
170170
$container
171171
->get(OutputInterface::class)
172172
->printError(

src/ExerciseRunner/CgiRunner.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,13 +52,17 @@ public function __construct(CgiExercise $exercise, EventDispatcher $eventDispatc
5252
// Try one more time, relying on being in the php binary's directory (where it should be on Windows)
5353
system(sprintf('%s --version %s', $newPath, $silence), $stillFailedToRun);
5454
if ($stillFailedToRun) {
55-
throw new \RuntimeException('Could not load php-cgi binary. Please install php-cgi using your package manager.');
55+
throw new \RuntimeException(
56+
'Could not load php-cgi binary. Please install php-cgi using your package manager.'
57+
);
5658
}
5759
}
5860
} else {
5961
@system('php-cgi --version > /dev/null 2>&1', $failedToRun);
6062
if ($failedToRun) {
61-
throw new \RuntimeException('Could not load php-cgi binary. Please install php-cgi using your package manager.');
63+
throw new \RuntimeException(
64+
'Could not load php-cgi binary. Please install php-cgi using your package manager.'
65+
);
6266
}
6367
}
6468
$this->eventDispatcher = $eventDispatcher;

0 commit comments

Comments
 (0)