@@ -175,9 +175,9 @@ discard block |
||
| 175 | 175 | return $this->instance; |
| 176 | 176 | } |
| 177 | 177 | |
| 178 | - $this->instance = $this->getJobFactory()->create($this->payload['class'], $this->getArguments(), $this->queue); |
|
| 179 | - $this->instance->job = $this; |
|
| 180 | - return $this->instance; |
|
| 178 | + $this->instance = $this->getJobFactory()->create($this->payload['class'], $this->getArguments(), $this->queue); |
|
| 179 | + $this->instance->job = $this; |
|
| 180 | + return $this->instance; |
|
| 181 | 181 | } |
| 182 | 182 | |
| 183 | 183 | /** |
@@ -294,26 +294,26 @@ discard block |
||
| 294 | 294 | return $this; |
| 295 | 295 | } |
| 296 | 296 | |
| 297 | - /** |
|
| 298 | - * @return Resque_Job_FactoryInterface |
|
| 299 | - */ |
|
| 300 | - public function getJobFactory() |
|
| 301 | - { |
|
| 302 | - if ($this->jobFactory === null) { |
|
| 303 | - $this->jobFactory = new Resque_Job_Factory(); |
|
| 304 | - } |
|
| 305 | - return $this->jobFactory; |
|
| 306 | - } |
|
| 307 | - |
|
| 308 | - /** |
|
| 309 | - * @return string |
|
| 310 | - */ |
|
| 311 | - private function getPrefix() |
|
| 312 | - { |
|
| 313 | - if (isset($this->payload['prefix'])) { |
|
| 314 | - return $this->payload['prefix']; |
|
| 315 | - } |
|
| 316 | - |
|
| 317 | - return ''; |
|
| 318 | - } |
|
| 297 | + /** |
|
| 298 | + * @return Resque_Job_FactoryInterface |
|
| 299 | + */ |
|
| 300 | + public function getJobFactory() |
|
| 301 | + { |
|
| 302 | + if ($this->jobFactory === null) { |
|
| 303 | + $this->jobFactory = new Resque_Job_Factory(); |
|
| 304 | + } |
|
| 305 | + return $this->jobFactory; |
|
| 306 | + } |
|
| 307 | + |
|
| 308 | + /** |
|
| 309 | + * @return string |
|
| 310 | + */ |
|
| 311 | + private function getPrefix() |
|
| 312 | + { |
|
| 313 | + if (isset($this->payload['prefix'])) { |
|
| 314 | + return $this->payload['prefix']; |
|
| 315 | + } |
|
| 316 | + |
|
| 317 | + return ''; |
|
| 318 | + } |
|
| 319 | 319 | } |