Test Failed
Push — master ( 0463aa...316b3e )
by Julien
11:52
created
resources/views/partials/tree/directElimination.blade.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,7 @@
 block discarded – undo
4 4
 
5 5
         $fighter1 = $item->team1 != null ? $item->team1->name : "Bye";
6 6
         $fighter2 = $item->team2 != null ? $item->team2->name : "Bye";
7
-    }else{
7
+    } else{
8 8
         $fighter1 = $item->competitors->get(0) != null ? $item->competitors->get(0)->user->name : "Bye";
9 9
         $fighter2 = $item->competitors->get(1) != null ? $item->competitors->get(1)->user->name : "Bye";
10 10
     }
Please login to merge, or discard this patch.
src/TreeGen/DirectEliminationTreeGen.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -78,7 +78,9 @@
 block discarded – undo
78 78
 
79 79
 
80 80
         //If there's already a match in the match array, then that means the next round is round 2, so increase the round number
81
-        if (count($this->brackets)) $roundNumber++;
81
+        if (count($this->brackets)) {
82
+            $roundNumber++;
83
+        }
82 84
 
83 85
         $countMatches = count($matches);
84 86
         //Create the first full round of teams, some may be blank if waiting on the results of a previous round
Please login to merge, or discard this patch.
src/models/FightersGroup.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@
 block discarded – undo
63 63
     }
64 64
 
65 65
     /**
66
-     * @param $settings
66
+     * @param ChampionshipSettings $settings
67 67
      * @param Championship $championship
68 68
      */
69 69
     public static function generateFights(Collection $fightersGroup, $settings, Championship $championship = null)
Please login to merge, or discard this patch.
src/TreeGen/TreeGen.php 1 patch
Doc Comments   +4 added lines, -3 removed lines patch added patch discarded remove patch
@@ -254,8 +254,9 @@  discard block
 block discarded – undo
254 254
     }
255 255
 
256 256
     /**
257
-     * @param $usersByArea
258
-     * @param $area
257
+     * @param Collection $usersByArea
258
+     * @param integer $area
259
+     * @param integer $round
259 260
      *
260 261
      * @return Collection
261 262
      */
@@ -289,7 +290,7 @@  discard block
 block discarded – undo
289 290
     /**
290 291
      * @param $area
291 292
      * @param $fighters
292
-     * @param $order
293
+     * @param integer $order
293 294
      * @param $round
294 295
      * @return FightersGroup
295 296
      */
Please login to merge, or discard this patch.
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.