Completed
Push — master ( e809dd...41540c )
by Julien
17:55
created
app/Grade.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -17,14 +17,14 @@
 block discarded – undo
17 17
 
18 18
     public static function getAll()
19 19
     {
20
-        return Cache::remember('grades', config('constants.GRADE_MINUTES'), function () {
20
+        return Cache::remember('grades', config('constants.GRADE_MINUTES'), function() {
21 21
             return static::all();
22 22
         });
23 23
     }
24 24
 
25 25
     public static function getAllPlucked()
26 26
     {
27
-        return Cache::rememberForever('grades_pluck', function () {
27
+        return Cache::rememberForever('grades_pluck', function() {
28 28
             return static::pluck('name', 'id');
29 29
         });
30 30
 
Please login to merge, or discard this patch.
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::rememberForever('countries', function () {
16
+        return Cache::rememberForever('countries', function() {
17 17
             return static::all();
18 18
         });
19 19
     }
20 20
 
21 21
     public static function getAllPlucked()
22 22
     {
23
-        return Cache::rememberForever('countries_pluck', function () {
23
+        return Cache::rememberForever('countries_pluck', function() {
24 24
             return static::pluck('name', 'id');
25 25
         });
26 26
     }
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,27 +14,27 @@
 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 21
                     'users',
22
-                    'fightersGroups' => function ($query) {
22
+                    'fightersGroups' => function($query) {
23 23
                         return $query->with('teams', 'competitors', 'fights');
24 24
                     }]);
25 25
             }])->withCount('competitors', 'teams')
26 26
                 ->where('slug', $tournamentSlug)->firstOrFail();
27 27
         } elseif (FightersGroup::hasChampionshipInRequest($request)) {
28
-            $tournament = Tournament::whereHas('championships', function ($query) use ($request) {
28
+            $tournament = Tournament::whereHas('championships', function($query) use ($request) {
29 29
                 return $query->where('id', $request->championshipId);
30 30
             })
31
-                ->with(['championships' => function ($query) use ($request) {
31
+                ->with(['championships' => function($query) use ($request) {
32 32
                     $query->where('id', '=', $request->championshipId)
33 33
                         ->with([
34 34
                             'settings',
35 35
                             'category',
36 36
                             'users',
37
-                            'fightersGroups' => function ($query) {
37
+                            'fightersGroups' => function($query) {
38 38
                                 return $query->with('teams', 'competitors', 'fights');
39 39
                             }]);
40 40
                 }])
Please login to merge, or discard this patch.