Passed
Push — master ( e07b4a...1565da )
by Julien
47:10
created
src/models/Championship.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -157,8 +157,9 @@
 block discarded – undo
157 157
 
158 158
     public function buildName()
159 159
     {
160
-        if ($this->settings != null && $this->settings->alias != null && $this->settings->alias != '')
161
-            return $this->settings->alias;
160
+        if ($this->settings != null && $this->settings->alias != null && $this->settings->alias != '') {
161
+                    return $this->settings->alias;
162
+        }
162 163
 
163 164
         if ($this->hasNoCustomSettings()) {
164 165
             return $this->category->name;
Please login to merge, or discard this patch.
src/models/Competitor.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -58,7 +58,9 @@
 block discarded – undo
58 58
      */
59 59
     private function defaultName()
60 60
     {
61
-        if ($this == null || $this->user == null) return "BYE";
61
+        if ($this == null || $this->user == null) {
62
+            return "BYE";
63
+        }
62 64
         return null;
63 65
     }
64 66
 
Please login to merge, or discard this patch.
src/models/Fight.php 1 patch
Braces   +6 added lines, -2 removed lines patch added patch discarded remove patch
@@ -276,10 +276,14 @@
 block discarded – undo
276 276
     function hasDeterminedParent()
277 277
     {
278 278
 
279
-        if ($this->c1 != null && $this->c2 != null) return true;
279
+        if ($this->c1 != null && $this->c2 != null) {
280
+            return true;
281
+        }
280 282
         foreach ($this->group->children as $child) {
281 283
             $fight = $child->fights->get(0);
282
-            if ($fight->c1 != null && $fight->c2 != null) return false;
284
+            if ($fight->c1 != null && $fight->c2 != null) {
285
+                return false;
286
+            }
283 287
         }
284 288
         return true;
285 289
     }
Please login to merge, or discard this patch.
src/models/FightersGroup.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -201,7 +201,9 @@
 block discarded – undo
201 201
             $fightsByRound = $championship->fightsByRound($numRound)->with('group.parent', 'group.children')->get();
202 202
             foreach ($fightsByRound as $fight) {
203 203
                 $parentGroup = $fight->group->parent;
204
-                if ($parentGroup == null) break;
204
+                if ($parentGroup == null) {
205
+                    break;
206
+                }
205 207
                 $parentFight = $parentGroup->fights->get(0); //TODO This Might change when extending to Preliminary
206 208
 
207 209
                 // IN this $fight, is c1 or c2 has the info?
Please login to merge, or discard this patch.
src/TreeGen/TreeGen.php 1 patch
Doc Comments   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
 
49 49
     /**
50 50
      * Get the biggest entity group
51
-     * @param $userGroups
51
+     * @param Collection $userGroups
52 52
      *
53 53
      * @return int
54 54
      */
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
 
108 108
     /**
109 109
      * Repart BYE in the tree,
110
-     * @param $fighterGroups
110
+     * @param Collection $fighterGroups
111 111
      * @param int $max
112 112
      *
113 113
      * @return Collection
@@ -175,9 +175,9 @@  discard block
 block discarded – undo
175 175
     }
176 176
 
177 177
     /**
178
-     * @param $area
179
-     * @param $order
180
-     * @param $round
178
+     * @param integer $area
179
+     * @param integer $order
180
+     * @param integer $round
181 181
      * @param $parent
182 182
      * @return FightersGroup
183 183
      */
@@ -338,8 +338,8 @@  discard block
 block discarded – undo
338 338
 
339 339
     /**
340 340
      * @param Collection $fighters
341
-     * @param $frequency
342
-     * @param $sizeGroupBy
341
+     * @param integer $frequency
342
+     * @param integer $sizeGroupBy
343 343
      * @param $bye
344 344
      * @return Collection
345 345
      */
@@ -362,8 +362,8 @@  discard block
 block discarded – undo
362 362
     /**
363 363
      * @param $frequency
364 364
      * @param $sizeGroupBy
365
-     * @param $count
366
-     * @param $byeCount
365
+     * @param integer $count
366
+     * @param integer $byeCount
367 367
      * @return bool
368 368
      */
369 369
     private function shouldInsertBye($frequency, $sizeGroupBy, $count, $byeCount): bool
Please login to merge, or discard this patch.