Skip to content

Commit bd1437f

Browse files
committed
CS
1 parent fe9091a commit bd1437f

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

src/ExerciseRunner/CgiRunner.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,9 @@ public function getName()
8585
private function checkRequest(RequestInterface $request, $fileName)
8686
{
8787
try {
88-
$event = $this->eventDispatcher->dispatch(new CgiExecuteEvent('cgi.verify.reference-execute.pre', $request));
88+
$event = $this->eventDispatcher->dispatch(
89+
new CgiExecuteEvent('cgi.verify.reference-execute.pre', $request)
90+
);
8991
$solutionResponse = $this->executePhpFile(
9092
$this->exercise->getSolution()->getEntryPoint(),
9193
$event->getRequest(),

src/ExerciseRunner/CliRunner.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,9 @@ public function run($fileName, OutputInterface $output)
147147
$output->writeTitle("Output");
148148
$process = $this->getPhpProcess($fileName, $args);
149149
$process->start();
150-
$this->eventDispatcher->dispatch(new CliExecuteEvent('cli.run.student.executing', $args, ['output' => $output]));
150+
$this->eventDispatcher->dispatch(
151+
new CliExecuteEvent('cli.run.student.executing', $args, ['output' => $output])
152+
);
151153
$process->wait(function ($outputType, $outputBuffer) use ($output) {
152154
$output->writeLine($outputBuffer);
153155
});

0 commit comments

Comments
 (0)