@@ -92,7 +92,7 @@ |
||
| 92 | 92 | $this->eventDispatcher->dispatch(Event::PRE_JOB, $event); |
| 93 | 93 | |
| 94 | 94 | $start = microtime(true); |
| 95 | - $handleException = function ($exception) use ($job) { |
|
| 95 | + $handleException = function($exception) use ($job) { |
|
| 96 | 96 | /** @var \Exception $exception */ |
| 97 | 97 | $exceptionMessage = get_class($exception)."\n".$exception->getCode().' - '.$exception->getMessage()."\n".$exception->getTraceAsString(); |
| 98 | 98 | $this->log('debug', "Failed: {$job->getClassName()}->{$job->getMethod()}"); |
@@ -33,7 +33,7 @@ |
||
| 33 | 33 | $total += count($this->jobs[$jobWorkerName]); |
| 34 | 34 | } |
| 35 | 35 | |
| 36 | - return array_sum(array_map(function ($jobs) { return count($jobs); }, $this->jobs)); |
|
| 36 | + return array_sum(array_map(function($jobs) { return count($jobs); }, $this->jobs)); |
|
| 37 | 37 | } |
| 38 | 38 | |
| 39 | 39 | public function getStatus() |
@@ -256,8 +256,9 @@ discard block |
||
| 256 | 256 | /** |
| 257 | 257 | * Sets up the runManager (document / entity persister) if appropriate. |
| 258 | 258 | * |
| 259 | - * @param $maxCount |
|
| 260 | - * @param $duration |
|
| 259 | + * @param integer $maxCount |
|
| 260 | + * @param integer $duration |
|
| 261 | + * @param double $start |
|
| 261 | 262 | */ |
| 262 | 263 | protected function runStart($start, $maxCount = null, $duration = null) |
| 263 | 264 | { |
@@ -290,6 +291,9 @@ discard block |
||
| 290 | 291 | } |
| 291 | 292 | } |
| 292 | 293 | |
| 294 | + /** |
|
| 295 | + * @param double $start |
|
| 296 | + */ |
|
| 293 | 297 | protected function runStop($start) |
| 294 | 298 | { |
| 295 | 299 | $end = microtime(true); |