@@ -80,9 +80,9 @@ |
||
80 | 80 | $handler = $this->handlerFactory->create($execution->getHandlerClass()); |
81 | 81 | |
82 | 82 | try { |
83 | - $this->eventDispatcher->dispatch(new TaskEvent($execution->getTask()),Events::TASK_BEFORE); |
|
83 | + $this->eventDispatcher->dispatch(new TaskEvent($execution->getTask()), Events::TASK_BEFORE); |
|
84 | 84 | $result = $handler->handle($execution->getWorkload()); |
85 | - $this->eventDispatcher->dispatch(new TaskEvent($execution->getTask()),Events::TASK_BEFORE); |
|
85 | + $this->eventDispatcher->dispatch(new TaskEvent($execution->getTask()), Events::TASK_BEFORE); |
|
86 | 86 | } catch (\Exception $exception) { |
87 | 87 | if ($exception instanceof FailedException) { |
88 | 88 | $errorOutput->writeln(FailedException::class); |