Skip to content

Commit

Permalink
One-line check.
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Dec 24, 2016
1 parent 0d2e6d0 commit a333324
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/Illuminate/Support/Testing/Fakes/QueueFake.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,7 @@ public function assertPushedOn($queue, $job, $callback = null)
return false;
}

if ($callback) {
return $callback(...func_get_args());
}

return true;
return $callback ? $callback(...func_get_args()) : true;
});
}

Expand Down

0 comments on commit a333324

Please sign in to comment.