@@ -48,7 +48,7 @@ |
||
48 | 48 | /** |
49 | 49 | * Get the services provided by the provider. |
50 | 50 | * |
51 | - * @return array |
|
51 | + * @return string[] |
|
52 | 52 | */ |
53 | 53 | public function provides() |
54 | 54 | { |
@@ -35,7 +35,7 @@ |
||
35 | 35 | */ |
36 | 36 | public function boot() |
37 | 37 | { |
38 | - Validator::extend('dumbpwd', function ($attribute, $value, $parameters, $validator) { |
|
38 | + Validator::extend('dumbpwd', function ($attribute, $value, $parameters, $validator) { |
|
39 | 39 | $path = realpath(__DIR__ . '/../resources/config/passwordlist.txt'); |
40 | 40 | $cache_key = md5_file($path); |
41 | 41 | $data = Cache::rememberForever('dumbpwd_list_' . $cache_key, function () use ($path) { |
@@ -35,10 +35,10 @@ discard block |
||
35 | 35 | */ |
36 | 36 | public function boot() |
37 | 37 | { |
38 | - Validator::extend('dumbpwd', function ($attribute, $value, $parameters, $validator) { |
|
39 | - $path = realpath(__DIR__ . '/../resources/config/passwordlist.txt'); |
|
38 | + Validator::extend('dumbpwd', function($attribute, $value, $parameters, $validator) { |
|
39 | + $path = realpath(__DIR__.'/../resources/config/passwordlist.txt'); |
|
40 | 40 | $cache_key = md5_file($path); |
41 | - $data = Cache::rememberForever('dumbpwd_list_' . $cache_key, function () use ($path) { |
|
41 | + $data = Cache::rememberForever('dumbpwd_list_'.$cache_key, function() use ($path) { |
|
42 | 42 | return collect(explode("\n", file_get_contents($path))); |
43 | 43 | }); |
44 | 44 | return !$data->contains($value); |
@@ -60,6 +60,6 @@ discard block |
||
60 | 60 | */ |
61 | 61 | public function provides() |
62 | 62 | { |
63 | - return ['laravel-password']; |
|
63 | + return [ 'laravel-password' ]; |
|
64 | 64 | } |
65 | 65 | } |