Completed
Push — master ( efd3e9...5888f9 )
by Michael
03:40
created
src/AppBundle/Controller/UserController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@
 block discarded – undo
48 48
 
49 49
         return $this->render(
50 50
             'user/index.html.twig',
51
-            ['votes' => $votes, 'user' => $user,]
51
+            ['votes' => $votes, 'user' => $user, ]
52 52
         );
53 53
     }
54 54
 
Please login to merge, or discard this patch.
src/Michaelc/Voting/STV/VoteHandler.php 2 patches
Indentation   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -144,16 +144,16 @@  discard block
 block discarded – undo
144 144
      */
145 145
     protected function transferSurplusVotes(float $surplus, Candidate $candidate)
146 146
     {
147
-    	$totalVotes = $candidate->getVotes();
148
-    	$candidateId = $candidate->getId();
147
+        $totalVotes = $candidate->getVotes();
148
+        $candidateId = $candidate->getId();
149 149
 
150
-    	foreach ($this->ballots as $i => $ballot)
151
-    	{
152
-        	if ($ballot->getLastChoice() == $candidateId)
153
-        	{
154
-		        $this->allocateVotes($ballot, $surplus, $totalVotes);
155
-        	}
156
-    	}
150
+        foreach ($this->ballots as $i => $ballot)
151
+        {
152
+            if ($ballot->getLastChoice() == $candidateId)
153
+            {
154
+                $this->allocateVotes($ballot, $surplus, $totalVotes);
155
+            }
156
+        }
157 157
 
158 158
         return;
159 159
     }
@@ -167,14 +167,14 @@  discard block
 block discarded – undo
167 167
      */
168 168
     protected function transferEliminatedVotes(Candidate $candidate)
169 169
     {
170
-    	$candidateId = $candidate->getId();
170
+        $candidateId = $candidate->getId();
171 171
 
172
-    	foreach ($this->ballots as $i => $ballot)
172
+        foreach ($this->ballots as $i => $ballot)
173 173
         {
174
-        	if ($ballot->getLastChoice() == $candidateId)
175
-        	{
176
-		        $this->allocateVotes($ballot);
177
-        	}
174
+            if ($ballot->getLastChoice() == $candidateId)
175
+            {
176
+                $this->allocateVotes($ballot);
177
+            }
178 178
         }
179 179
 
180 180
         return;
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -102,7 +102,7 @@
 block discarded – undo
102 102
         foreach ($this->ballots as $i => $ballot)
103 103
         {
104 104
             $this->logger->debug("Processing ballot $i in stage 1",
105
-                ['ballot' => $ballot,]
105
+                ['ballot' => $ballot, ]
106 106
             );
107 107
 
108 108
             $this->allocateVotes($ballot);
Please login to merge, or discard this patch.