Test Failed
Branch scoresheet (616eaa)
by Julien
04:15
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.
resources/views/partials/tree/directElimination.blade.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,7 @@
 block discarded – undo
6 6
 
7 7
         $fighter1 = $item->team1 != null ? $item->team1->name : "Bye";
8 8
         $fighter2 = $item->team2 != null ? $item->team2->name : "Bye";
9
-    }else{
9
+    } else{
10 10
         $fighter1 = $item->competitors->get(0) != null ? $item->competitors->get(0)->user->name : "Bye";
11 11
         $fighter2 = $item->competitors->get(1) != null ? $item->competitors->get(1)->user->name : "Bye";
12 12
 
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
@@ -56,7 +56,9 @@
 block discarded – undo
56 56
         $matches = array_chunk($teams, 2);
57 57
 
58 58
         //If there's already a match in the match array, then that means the next round is round 2, so increase the round number
59
-        if (count($this->brackets)) $roundNumber++;
59
+        if (count($this->brackets)) {
60
+            $roundNumber++;
61
+        }
60 62
 
61 63
         $countMatches = count($matches);
62 64
         //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.