@@ -32,9 +32,7 @@ discard block |
||
| 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 |
||
| 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 | } |
@@ -17,14 +17,14 @@ |
||
| 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 | |
@@ -13,14 +13,14 @@ |
||
| 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 | } |
@@ -14,27 +14,27 @@ |
||
| 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 | }]) |
@@ -20,7 +20,7 @@ discard block |
||
| 20 | 20 | |
| 21 | 21 | $this->hideSensitiveRequestDetails(); |
| 22 | 22 | |
| 23 | - Telescope::filter(function (IncomingEntry $entry) { |
|
| 23 | + Telescope::filter(function(IncomingEntry $entry) { |
|
| 24 | 24 | if ($this->app->isLocal()) { |
| 25 | 25 | return true; |
| 26 | 26 | } |
@@ -61,7 +61,7 @@ discard block |
||
| 61 | 61 | */ |
| 62 | 62 | protected function gate() |
| 63 | 63 | { |
| 64 | - Gate::define('viewTelescope', function ($user) { |
|
| 64 | + Gate::define('viewTelescope', function($user) { |
|
| 65 | 65 | return in_array($user->email, [ |
| 66 | 66 | '[email protected]', |
| 67 | 67 | '[email protected]', |