private function processes()
    {
        return collect($this->supervisors->all())->pluck('processes')->reduce(function ($final, $queues) {
            foreach ($queues as $queue => $processes) {
                $final[$queue] = isset($final[$queue]) ? $final[$queue] + $processes : $processes;
            }

            return $final;
        }, []);
    }
private function processes()
    {
        return collect($this->supervisors->all())->pluck('processes')->reduce(function ($final, $queues) {
            foreach ($queues as $queue => $processes) {
                $final[$queue] = isset($final[$queue]) ? $final[$queue] + $processes : $processes;
            }

            return $final;
        }, []);
    }
private function processes ( ) { return collect ( $ this -> supervisors -> all ( ) ) -> pluck ( 'processes' ) -> reduce ( function ( $ final , $ queues ) { foreach ( $ queues as $ queue => $ processes ) { $ final [ $ queue ] = isset ( $ final [ $ queue ] ) ? $ final [ $ queue ] + $ processes : $ processes ; } return $ final ; } , [ ] ) ; }
Get the number of processes of each queue.

@return array
Get the number of processes of each queue .