Skip to content

Commit

Permalink
fix style
Browse files Browse the repository at this point in the history
  • Loading branch information
themsaid committed Nov 3, 2016
1 parent 1404b60 commit 5377009
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 3 additions & 2 deletions src/Illuminate/Queue/Jobs/Job.php
Original file line number Diff line number Diff line change
Expand Up @@ -246,15 +246,16 @@ public function payload()
*
* @return mixed
*/
public function getCommand(){
public function getCommand()
{
if ($this->command) {
return $this->command;
}

$payload = $this->payload();

return $this->command = isset($payload['data']['command'])
? unserialize($payload['data']['command']) : null;
? unserialize($payload['data']['command']) : null;
}

/**
Expand Down
2 changes: 0 additions & 2 deletions src/Illuminate/Queue/Worker.php
Original file line number Diff line number Diff line change
Expand Up @@ -200,8 +200,6 @@ protected function getNextJob($connection, $queue)
} catch (Throwable $e) {
$this->exceptions->report(new FatalThrowableError($e));
}

return null;
}

/**
Expand Down

0 comments on commit 5377009

Please sign in to comment.