Skip to content

Commit

Permalink
remove unnecessary else (laravel#14036)
Browse files Browse the repository at this point in the history
  • Loading branch information
greydnls authored and taylorotwell committed Jun 18, 2016
1 parent 092ae9c commit 0934096
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Illuminate/Queue/Queue.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,9 @@ protected function createPayload($job, $data = '', $queue = null)
{
if ($job instanceof Closure) {
return json_encode($this->createClosurePayload($job, $data));
} elseif (is_object($job)) {
}

if (is_object($job)) {
return json_encode([
'job' => 'Illuminate\Queue\CallQueuedHandler@call',
'data' => ['commandName' => get_class($job), 'command' => serialize(clone $job)],
Expand Down

0 comments on commit 0934096

Please sign in to comment.