@@ -27,7 +27,7 @@ |
||
27 | 27 | * Get the notification's delivery channels. |
28 | 28 | * |
29 | 29 | * @param mixed $notifiable |
30 | - * @return array |
|
30 | + * @return string[] |
|
31 | 31 | */ |
32 | 32 | public function via($notifiable) |
33 | 33 | { |
@@ -16,7 +16,7 @@ |
||
16 | 16 | * Create a new policy instance. |
17 | 17 | * @param User $user |
18 | 18 | * @param $ability |
19 | - * @return bool |
|
19 | + * @return boolean|null |
|
20 | 20 | */ |
21 | 21 | public function before(User $user, $ability) |
22 | 22 | { |
@@ -16,7 +16,7 @@ |
||
16 | 16 | * Create a new policy instance. |
17 | 17 | * @param User $user |
18 | 18 | * @param $ability |
19 | - * @return bool |
|
19 | + * @return boolean|null |
|
20 | 20 | */ |
21 | 21 | public function before(User $user, $ability) |
22 | 22 | { |
@@ -16,7 +16,7 @@ |
||
16 | 16 | * Create a new policy instance. |
17 | 17 | * @param User $user |
18 | 18 | * @param $ability |
19 | - * @return bool |
|
19 | + * @return boolean|null |
|
20 | 20 | */ |
21 | 21 | public function before(User $user, $ability) |
22 | 22 | { |
@@ -8,7 +8,6 @@ |
||
8 | 8 | use Illuminate\Support\Facades\App; |
9 | 9 | use Illuminate\Support\Facades\Auth; |
10 | 10 | use Illuminate\Support\Facades\Response; |
11 | -use Illuminate\Support\Facades\View; |
|
12 | 11 | use Xoco70\LaravelTournaments\Models\ChampionshipSettings; |
13 | 12 | |
14 | 13 | class ChampionshipSettingsController extends Controller |
@@ -17,7 +17,7 @@ |
||
17 | 17 | * @return mixed |
18 | 18 | */ |
19 | 19 | |
20 | - protected $languages = ['en', 'es', 'ja', 'fr','de']; |
|
20 | + protected $languages = ['en', 'es', 'ja', 'fr', 'de']; |
|
21 | 21 | |
22 | 22 | |
23 | 23 | public function handle($request, Closure $next) |
@@ -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 | } |