Skip to content

Commit

Permalink
lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Hristo committed Apr 21, 2022
1 parent fe9c335 commit c3054e2
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/Illuminate/Queue/CallQueuedHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,8 @@ protected function getCommand(array $data)
*/
protected function dispatchThroughMiddleware(Job $job, $command)
{
if($command instanceof \__PHP_Incomplete_Class) {
throw new \Exception('Tried running job that has no matching class ' . json_encode($command));
if ($command instanceof \__PHP_Incomplete_Class) {
throw new \Exception('Tried running job that has no matching class '.json_encode($command));
}

return (new Pipeline($this->container))->send($command)
Expand Down Expand Up @@ -260,11 +260,10 @@ public function failed(array $data, $e, string $uuid)
$this->ensureUniqueJobLockIsReleased($command);
}

if($command instanceof \__PHP_Incomplete_Class) {
if ($command instanceof \__PHP_Incomplete_Class) {
return;
}


$this->ensureFailedBatchJobIsRecorded($uuid, $command, $e);
$this->ensureChainCatchCallbacksAreInvoked($uuid, $command, $e);

Expand Down

0 comments on commit c3054e2

Please sign in to comment.