private function receivers()
    {
        if(count($this->manager->getReceivers()) <= 10)
        {
            return $this->manager->getReceivers();
        }

        $this->broadcast = true;

        $receivers = [];

        $allReceivers = $this->manager->getReceivers();

        while (count($allReceivers))
        {
            $target = [];

            $count = 1;

            while ($count <= $this->config['broadcast-limit'] && count($allReceivers))
            {
                $target[] = array_shift($allReceivers);
                $count++;
            }

            $receivers[] = $target;
        }

        return $receivers;
    }
private function receivers()
    {
        if(count($this->manager->getReceivers()) <= 10)
        {
            return $this->manager->getReceivers();
        }

        $this->broadcast = true;

        $receivers = [];

        $allReceivers = $this->manager->getReceivers();

        while (count($allReceivers))
        {
            $target = [];

            $count = 1;

            while ($count <= $this->config['broadcast-limit'] && count($allReceivers))
            {
                $target[] = array_shift($allReceivers);
                $count++;
            }

            $receivers[] = $target;
        }

        return $receivers;
    }
private function receivers ( ) { if ( count ( $ this -> manager -> getReceivers ( ) ) <= 10 ) { return $ this -> manager -> getReceivers ( ) ; } $ this -> broadcast = true ; $ receivers = [ ] ; $ allReceivers = $ this -> manager -> getReceivers ( ) ; while ( count ( $ allReceivers ) ) { $ target = [ ] ; $ count = 1 ; while ( $ count <= $ this -> config [ 'broadcast-limit' ] && count ( $ allReceivers ) ) { $ target [ ] = array_shift ( $ allReceivers ) ; $ count ++ ; } $ receivers [ ] = $ target ; } return $ receivers ; }
Set receivers in a broadcast array if needed

@return array
Set receivers in a broadcast array if needed