@@ -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 | } |
@@ -115,8 +115,7 @@ |
||
| 115 | 115 | if ($priority) { |
| 116 | 116 | $this->assertEquals($priority, $job->getPriority(), |
| 117 | 117 | "Priority should be the same."); |
| 118 | - } |
|
| 119 | - else { |
|
| 118 | + } else { |
|
| 120 | 119 | $this->assertNull($job->getPriority(), "Priority should be null"); |
| 121 | 120 | } |
| 122 | 121 | |