Skip to content

Commit

Permalink
Correct indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Grzegorz Rajchman committed Apr 7, 2020
1 parent 23fb4ea commit 908bbc3
Showing 1 changed file with 25 additions and 25 deletions.
50 changes: 25 additions & 25 deletions lib/Resque/Job.php
Original file line number Diff line number Diff line change
Expand Up @@ -175,9 +175,9 @@ public function getInstance()
return $this->instance;
}

$this->instance = $this->getJobFactory()->create($this->payload['class'], $this->getArguments(), $this->queue);
$this->instance->job = $this;
return $this->instance;
$this->instance = $this->getJobFactory()->create($this->payload['class'], $this->getArguments(), $this->queue);
$this->instance->job = $this;
return $this->instance;
}

/**
Expand Down Expand Up @@ -294,26 +294,26 @@ public function setJobFactory(Resque_Job_FactoryInterface $jobFactory)
return $this;
}

/**
* @return Resque_Job_FactoryInterface
*/
public function getJobFactory()
{
if ($this->jobFactory === null) {
$this->jobFactory = new Resque_Job_Factory();
}
return $this->jobFactory;
}

/**
* @return string
*/
private function getPrefix()
{
if (isset($this->payload['prefix'])) {
return $this->payload['prefix'];
}

return '';
}
/**
* @return Resque_Job_FactoryInterface
*/
public function getJobFactory()
{
if ($this->jobFactory === null) {
$this->jobFactory = new Resque_Job_Factory();
}
return $this->jobFactory;
}

/**
* @return string
*/
private function getPrefix()
{
if (isset($this->payload['prefix'])) {
return $this->payload['prefix'];
}

return '';
}
}

0 comments on commit 908bbc3

Please sign in to comment.