Skip to content
Permalink
Browse files

formatting

  • Loading branch information...
taylorotwell committed Sep 2, 2019
1 parent 15cbb5a commit ddaf6e63326263a9bb3732e887a2bf8b2381caa1
Showing with 3 additions and 9 deletions.
  1. +3 −9 src/Illuminate/Support/Testing/Fakes/QueueFake.php
@@ -229,15 +229,9 @@ public function connection($value = null)
*/
public function size($queue = null)
{
/** @var int $count how many jobs in the given queue. */
$count = 0;
foreach ($this->jobs as $jobClass) {
foreach ($jobClass as $job) {
$count += $job['queue'] === $queue;
}
}
return $count;
return collect($this->jobs)->flatten(1)->filter(function ($job) use ($queue) {
return $job['queue'] === $queue;
})->count();
}
/**

0 comments on commit ddaf6e6

Please sign in to comment.
You can’t perform that action at this time.