Completed
Branch master (50705e)
by Julien
02:45
created
src/models/Fight.php 1 patch
Braces   +9 added lines, -3 removed lines patch added patch discarded remove patch
@@ -63,7 +63,9 @@  discard block
 block discarded – undo
63 63
      */
64 64
     private static function getActorsToFights(Championship $championship, FightersGroup $group = null)
65 65
     {
66
-        if ($group == null) return null;
66
+        if ($group == null) {
67
+            return null;
68
+        }
67 69
         $fighters = $group->getFighters();
68 70
         $fighterType = $group->getFighterType();
69 71
         if (sizeof($fighters) == 0) {
@@ -274,10 +276,14 @@  discard block
 block discarded – undo
274 276
     function hasDeterminedParent()
275 277
     {
276 278
 
277
-        if ($this->c1 != null && $this->c2 != null) return true;
279
+        if ($this->c1 != null && $this->c2 != null) {
280
+            return true;
281
+        }
278 282
         foreach ($this->group->children as $child) {
279 283
             $fight = $child->fights->get(0);
280
-            if ($fight->c1 != null && $fight->c2 != null) return false;
284
+            if ($fight->c1 != null && $fight->c2 != null) {
285
+                return false;
286
+            }
281 287
         }
282 288
         return true;
283 289
     }
Please login to merge, or discard this patch.