@@ -112,7 +112,7 @@ discard block |
||
| 112 | 112 | * candidate votes) |
| 113 | 113 | * @return Ballot The same ballot passed in modified |
| 114 | 114 | */ |
| 115 | - protected function allocateVotes(Ballot &$ballot, float $multiplier = 1.0, float $divisor = 1.0): Ballot |
|
| 115 | + protected function allocateVotes(Ballot & $ballot, float $multiplier = 1.0, float $divisor = 1.0): Ballot |
|
| 116 | 116 | { |
| 117 | 117 | $weight = $ballot->setWeight(($ballot->getWeight() * $multiplier) / $divisor); |
| 118 | 118 | $candidate = $ballot->getNextChoice(); |
@@ -222,7 +222,7 @@ discard block |
||
| 222 | 222 | } |
| 223 | 223 | } |
| 224 | 224 | |
| 225 | - foreach($minimumCandidates as $minimumCandidate) |
|
| 225 | + foreach ($minimumCandidates as $minimumCandidate) |
|
| 226 | 226 | { |
| 227 | 227 | $this->transferEliminatedVotes($minimumCandidate); |
| 228 | 228 | $minimumCandidate->setState(Candidate::DEFEATED); |
@@ -215,8 +215,7 @@ |
||
| 215 | 215 | $minimum = $candidate->getVotes(); |
| 216 | 216 | unset($minimumCandidates); |
| 217 | 217 | $minimumCandidates[] = $candidate; |
| 218 | - } |
|
| 219 | - elseif ($candidate->getVotes() == $minimum) |
|
| 218 | + } elseif ($candidate->getVotes() == $minimum) |
|
| 220 | 219 | { |
| 221 | 220 | $minimumCandidates[] = $candidate; |
| 222 | 221 | } |