Completed
Pull Request — master (#158)
by Adrien
02:05
created
src/Badger/Bundle/GameBundle/Controller/DefaultController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -24,11 +24,11 @@
 block discarded – undo
24 24
         $userTags = $this->getUser()->getTags()->toArray();
25 25
 
26 26
         // Put default tag first
27
-        usort($userTags, function ($a, $b)
27
+        usort($userTags, function($a, $b)
28 28
         {
29 29
             if ($a->isDefault()) {
30 30
                 return -1;
31
-            } else if($b->isDefault()) {
31
+            } else if ($b->isDefault()) {
32 32
                 return 1;
33 33
             }
34 34
         });
Please login to merge, or discard this patch.
src/Badger/Bundle/UserBundle/Doctrine/Repository/UserRepository.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -102,7 +102,7 @@
 block discarded – undo
102 102
                 ->setParameter('lastDayOfMonth', date(sprintf('%s-%s-%s', $year, $month, $lastDay)))
103 103
             ->groupBy('u')
104 104
             ->having('badgeCompletions IN (:maxValues)')
105
-                ->setParameter('maxValues', $maxValues,  Connection::PARAM_STR_ARRAY)
105
+                ->setParameter('maxValues', $maxValues, Connection::PARAM_STR_ARRAY)
106 106
             ->orderBy('badgeCompletions', 'DESC')
107 107
         ;
108 108
 
Please login to merge, or discard this patch.