protected function totalProcessesFor($allSupervisors, $queue)
    {
        return $allSupervisors->sum(function ($supervisor) use ($queue) {
            return $supervisor->processes[$queue] ?? 0;
        });
    }
protected function totalProcessesFor($allSupervisors, $queue)
    {
        return $allSupervisors->sum(function ($supervisor) use ($queue) {
            return $supervisor->processes[$queue] ?? 0;
        });
    }
protected function totalProcessesFor ( $ allSupervisors , $ queue ) { return $ allSupervisors -> sum ( function ( $ supervisor ) use ( $ queue ) { return $ supervisor -> processes [ $ queue ] ?? 0 ; } ) ; }
Get the total process count for a given queue.

@param  \Illuminate\Support\Collection  $allSupervisors
@param  string  $queue
@return int
Get the total process count for a given queue .