Test Setup Failed
Push — master ( eef50d...260f6c )
by Julien
10:19 queued 06:04
created
app/Country.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -13,14 +13,14 @@
 block discarded – undo
13 13
 
14 14
     public static function getAll()
15 15
     {
16
-        return Cache::remember('countries', config('constants.GRADE_MINUTES'), function () {
16
+        return Cache::remember('countries', config('constants.GRADE_MINUTES'), function() {
17 17
             return static::all();
18 18
         });
19 19
     }
20 20
 
21 21
     public static function getAllPlucked()
22 22
     {
23
-        return Cache::remember('countries_pluck', config('constants.GRADE_MINUTES'), function () {
23
+        return Cache::remember('countries_pluck', config('constants.GRADE_MINUTES'), function() {
24 24
             return static::pluck('name', 'id');
25 25
         });
26 26
     }
Please login to merge, or discard this patch.
app/User.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
     public static function boot()
70 70
     {
71 71
         parent::boot();
72
-        static::creating(function ($user) {
72
+        static::creating(function($user) {
73 73
             $softDeletedUser = User::onlyTrashed()->where('email', '=', $user->email)->first();
74 74
             if ($softDeletedUser != null) {
75 75
                 $softDeletedUser->restore();
@@ -85,12 +85,12 @@  discard block
 block discarded – undo
85 85
         // If a User is deleted, you must delete:
86 86
         // His tournaments, his competitors
87 87
 
88
-        static::deleting(function ($user) {
88
+        static::deleting(function($user) {
89 89
             $user->tournaments->each->delete();
90 90
             $user->competitors->each->delete();
91 91
 
92 92
         });
93
-        static::restoring(function ($user) {
93
+        static::restoring(function($user) {
94 94
             $user->competitors()->withTrashed()->get()->each->restore();
95 95
             $user->tournaments()->withTrashed()->get()->each->restore();
96 96
         });
Please login to merge, or discard this patch.
app/FightersGroup.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -14,25 +14,25 @@
 block discarded – undo
14 14
         $tournament = null;
15 15
         if (FightersGroup::hasTournamentInRequest($request)) {
16 16
             $tournamentSlug = $request->tournament;
17
-            $tournament = Tournament::with(['championships' => function ($query) use ($request) {
17
+            $tournament = Tournament::with(['championships' => function($query) use ($request) {
18 18
                 $query->with([
19 19
                     'settings',
20 20
                     'category',
21
-                    'fightersGroups' => function ($query) {
21
+                    'fightersGroups' => function($query) {
22 22
                         return $query->with('teams', 'competitors', 'fights');
23 23
                     }]);
24 24
             }])->withCount('competitors', 'teams')
25 25
                 ->where('slug', $tournamentSlug)->firstOrFail();
26 26
         } elseif (FightersGroup::hasChampionshipInRequest($request)) {
27
-            $tournament = Tournament::whereHas('championships', function ($query) use ($request) {
27
+            $tournament = Tournament::whereHas('championships', function($query) use ($request) {
28 28
                 return $query->where('id', $request->championshipId);
29 29
             })
30
-                ->with(['championships' => function ($query) use ($request) {
30
+                ->with(['championships' => function($query) use ($request) {
31 31
                     $query->where('id', '=', $request->championshipId)
32 32
                         ->with([
33 33
                             'settings',
34 34
                             'category',
35
-                            'fightersGroups' => function ($query) {
35
+                            'fightersGroups' => function($query) {
36 36
                                 return $query->with('teams', 'competitors', 'fights');
37 37
                             }]);
38 38
                 }])
Please login to merge, or discard this patch.
app/Tournament.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -51,12 +51,12 @@  discard block
 block discarded – undo
51 51
     protected static function boot()
52 52
     {
53 53
         parent::boot();
54
-        static::deleting(function ($tournament) {
54
+        static::deleting(function($tournament) {
55 55
             $tournament->championships->each->delete();
56 56
             $tournament->invites->each->delete();
57 57
 
58 58
         });
59
-        static::restoring(function ($tournament) {
59
+        static::restoring(function($tournament) {
60 60
             $tournament->championships()->withTrashed()->get()->each->restore();
61 61
         });
62 62
 
@@ -361,7 +361,7 @@  discard block
 block discarded – undo
361 361
     public function buildCategoryList()
362 362
     {
363 363
         $championships = Championship::with('category', 'settings')
364
-            ->whereHas('category', function ($query) {
364
+            ->whereHas('category', function($query) {
365 365
                 return $query->where('isTeam', 1);
366 366
             })
367 367
             ->where('tournament_id', $this->id)
Please login to merge, or discard this patch.
app/Club.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -114,7 +114,7 @@
 block discarded – undo
114 114
                 return $query->where('federation_id', $user->federationOwned->id);
115 115
             case
116 116
                 $user->isAssociationPresident() && $user->associationOwned:
117
-                return $query->whereHas('association', function ($query) use ($user) {
117
+                return $query->whereHas('association', function($query) use ($user) {
118 118
                     $query->where('id', $user->associationOwned->id);
119 119
                 });
120 120
             case $user->isClubPresident() && $user->clubOwned:
Please login to merge, or discard this patch.