Completed
Push — master ( dd3542...a420e1 )
by Julien
09:51
created
app/Http/helpers.php 1 patch
Spacing   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -32,9 +32,7 @@  discard block
 block discarded – undo
32 32
     $clean = ($anal) ? preg_replace("/[^a-zA-Z0-9]/", "", $clean) : $clean;
33 33
     return ($force_lowercase) ?
34 34
         (function_exists('mb_strtolower')) ?
35
-            mb_strtolower($clean, 'UTF-8') :
36
-            strtolower($clean) :
37
-        $clean;
35
+            mb_strtolower($clean, 'UTF-8') : strtolower($clean) : $clean;
38 36
 }
39 37
 
40 38
 function isJapanese($lang)
@@ -78,7 +76,7 @@  discard block
 block discarded – undo
78 76
 {
79 77
     $is_conn = false;
80 78
     $connected = @fsockopen("www.google.com", 443);
81
-    if ($connected){
79
+    if ($connected) {
82 80
         $is_conn = true;
83 81
         fclose($connected);
84 82
     }
Please login to merge, or discard this patch.
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.