@@ -19,7 +19,7 @@ |
||
19 | 19 | $this->jobManager = new StaticJobManager(); |
20 | 20 | $this->worker = new FibonacciWorker(); |
21 | 21 | $this->worker->setJobManager($this->jobManager); |
22 | - $this->eventDispatcher = new EventDispatcher(); |
|
22 | + $this->eventDispatcher = new EventDispatcher(); |
|
23 | 23 | $this->workerManager = new WorkerManager($this->jobManager, $this->eventDispatcher); |
24 | 24 | } |
25 | 25 |
@@ -65,7 +65,7 @@ |
||
65 | 65 | public function save($job) { |
66 | 66 | if (!$job->getId()) { |
67 | 67 | $job->setId($this->uniqeId); |
68 | - $this->jobs[$job->getWorkerName()][$this->uniqeId] = $job; |
|
68 | + $this->jobs[$job->getWorkerName()][$this->uniqeId] = $job; |
|
69 | 69 | if ($this->enableSorting) { |
70 | 70 | uasort($this->jobs[$job->getWorkerName()], array($this, 'compareJobPriority')); |
71 | 71 | } |
@@ -9,7 +9,7 @@ |
||
9 | 9 | * file that was distributed with this source code. |
10 | 10 | */ |
11 | 11 | |
12 | -$file = __DIR__.'/../vendor/autoload.php'; |
|
12 | +$file = __DIR__ . '/../vendor/autoload.php'; |
|
13 | 13 | if (!file_exists($file)) { |
14 | 14 | throw new RuntimeException('Install dependencies to run test suite.'); |
15 | 15 | } |