Completed
Push — master ( 5888f9...b8d256 )
by Michael
07:12 queued 02:54
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
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -224,8 +224,7 @@  discard block
 block discarded – undo
224 224
                 $minimum = $candidate->getVotes();
225 225
                 unset($minimumCandidates);
226 226
                 $minimumCandidates[] = $candidate;
227
-            }
228
-            elseif ($candidate->getVotes() == $minimum)
227
+            } elseif ($candidate->getVotes() == $minimum)
229 228
             {
230 229
                 $minimumCandidates[] = $candidate;
231 230
             }
@@ -270,8 +269,7 @@  discard block
 block discarded – undo
270 269
         if (count($ballot->getRanking()) > $this->election->getCandidateCount())
271 270
         {
272 271
             return false;
273
-        }
274
-        else
272
+        } else
275 273
         {
276 274
             $candidateIds = $this->election->getCandidateIds();
277 275
 
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.