Test Failed
Branch master (1006b0)
by Julien
02:54
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/models/Championship.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -149,8 +149,9 @@
 block discarded – undo
149 149
     {
150 150
 
151 151
 
152
-        if ($this->settings != null && $this->settings->alias != null && $this->settings->alias != '')
153
-            return $this->settings->alias;
152
+        if ($this->settings != null && $this->settings->alias != null && $this->settings->alias != '') {
153
+                    return $this->settings->alias;
154
+        }
154 155
 
155 156
         $genders = [
156 157
             'M' => trans('categories.male'),
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
@@ -51,7 +51,9 @@
 block discarded – undo
51 51
 
52 52
 
53 53
         //If there's already a match in the match array, then that means the next round is round 2, so increase the round number
54
-        if (count($this->brackets)) $roundNumber++;
54
+        if (count($this->brackets)) {
55
+            $roundNumber++;
56
+        }
55 57
         $countMatches = count($matches);
56 58
         //Create the first full round of teams, some may be blank if waiting on the results of a previous round
57 59
         for ($i = 0; $i < $countMatches; $i++) {
Please login to merge, or discard this patch.