Passed
Branch master (8db9fa)
by Julien
24:59
created
src/models/Championship.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -23,11 +23,11 @@  discard block
 block discarded – undo
23 23
     {
24 24
         parent::boot();
25 25
 
26
-        static::deleting(function ($championship) {
26
+        static::deleting(function($championship) {
27 27
             $championship->competitors()->delete();
28 28
             $championship->settings()->delete();
29 29
         });
30
-        static::restoring(function ($championship) {
30
+        static::restoring(function($championship) {
31 31
             $championship->competitors()->restore();
32 32
             $championship->settings()->restore();
33 33
         });
@@ -211,6 +211,6 @@  discard block
 block discarded – undo
211 211
      */
212 212
     public function groupsByRound($round) : Collection
213 213
     {
214
-        return $this->fightersGroups()->where('round',$round)->get();
214
+        return $this->fightersGroups()->where('round', $round)->get();
215 215
     }
216 216
 }
Please login to merge, or discard this patch.
src/TreeController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -74,12 +74,12 @@
 block discarded – undo
74 74
             FightersGroup::generateFights($championship);
75 75
         } catch (TreeGenerationException $e) {
76 76
             redirect()->back()
77
-                ->withErrors([$numFighters ."-".$e->getMessage()]);
77
+                ->withErrors([$numFighters . "-" . $e->getMessage()]);
78 78
         }
79 79
 
80 80
         return redirect()->back()
81 81
             ->with('numFighters', $numFighters)
82 82
             ->with('hasPreliminary', $championship->settings->hasPreliminary)
83
-            ->with(['success' , "Success"]);
83
+            ->with(['success', "Success"]);
84 84
     }
85 85
 }
Please login to merge, or discard this patch.