Passed
Branch master (27f6d9)
by Michael
04:19
created
src/Michaelc/Voting/STV/VoteHandler.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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);
Please login to merge, or discard this patch.