Passed
Pull Request — master (#43)
by Julien
14:24 queued 07:51
created
src/TreeGen/CreateSingleEliminationTree.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
 
29 29
     public function build()
30 30
     {
31
-        $fighters = $this->groupsByRound->first()->map(function ($item) {
31
+        $fighters = $this->groupsByRound->first()->map(function($item) {
32 32
             $fighters = $item->getFightersWithBye();
33 33
             $fighter1 = $fighters->get(0);
34 34
             $fighter2 = $fighters->get(1);
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
             //The minus 3 is to ignore the final, semi final and quarter final rounds
138 138
 
139 139
             for ($i = 0; $i < $noRounds - 3; $i++) {
140
-                $tempRounds[] = 'Last '.$noTeamsInFirstRound;
140
+                $tempRounds[] = 'Last ' . $noTeamsInFirstRound;
141 141
                 $noTeamsInFirstRound /= 2;
142 142
             }
143 143
 
@@ -159,7 +159,7 @@  discard block
 block discarded – undo
159 159
         foreach ($roundTitles as $key => $roundTitle) {
160 160
             $left = $key * ($this->matchWrapperWidth + $this->roundSpacing - 1);
161 161
 
162
-            echo '<div class="round-title" style="left: '.$left.'px;">'.$roundTitle.'</div>';
162
+            echo '<div class="round-title" style="left: ' . $left . 'px;">' . $roundTitle . '</div>';
163 163
         }
164 164
         echo '</div>';
165 165
     }
@@ -172,7 +172,7 @@  discard block
 block discarded – undo
172 172
     public function getPlayerList($selected)
173 173
     {
174 174
         $html = '<select>
175
-                <option'.($selected == '' ? ' selected' : '').'></option>';
175
+                <option'.($selected == '' ? ' selected' : '') . '></option>';
176 176
 
177 177
         foreach ($this->championship->fighters as $fighter) {
178 178
             $html = $this->addOptionToSelect($selected, $fighter, $html);
@@ -232,7 +232,7 @@  discard block
 block discarded – undo
232 232
     {
233 233
         if ($fighter != null) {
234 234
             $select = $selected != null && $selected->id == $fighter->id ? ' selected' : '';
235
-            $html .= '<option'.$select
235
+            $html .= '<option' . $select
236 236
                 .' value='
237 237
                 .($fighter->id ?? '')
238 238
                 .'>'
Please login to merge, or discard this patch.