src/STV/ElectionRunner.php
protected function reallocateRemainingVotes(array &$candidates)
    {
        if (!empty($candidates)) {
            $this->logger->info('All votes re-allocated. Electing all remaining candidates');

            if ($this->candidatesToElect < count($candidates)) {
                throw new LogicException('Cannot elect candidate as no more seats to fill');
            }

            $this->electCandidates($candidates);
        }

        return;
    }
protected function reallocateRemainingVotes(array &$candidates)
    {
        if (!empty($candidates)) {
            $this->logger->info('All votes re-allocated. Electing all remaining candidates');

            if ($this->candidatesToElect < count($candidates)) {
                throw new LogicException('Cannot elect candidate as no more seats to fill');
            }

            $this->electCandidates($candidates);
        }

        return;
    }
protected function reallocateRemainingVotes ( array & $ candidates ) { if ( ! empty ( $ candidates ) ) { $ this -> logger -> info ( 'All votes re-allocated. Electing all remaining candidates' ) ; if ( $ this -> candidatesToElect < count ( $ candidates ) ) { throw new LogicException ( 'Cannot elect candidate as no more seats to fill' ) ; } $ this -> electCandidates ( $ candidates ) ; } return ; }
Reallocate any remaining votes
p. 53.

@param Candidate[] $candidates All remaining candidates to elect

@return
Reallocate any remaining votes p . 53 .