@@ -48,7 +48,7 @@ |
||
48 | 48 | |
49 | 49 | /** |
50 | 50 | * Get the services provided by the provider |
51 | - * @return array |
|
51 | + * @return string[] |
|
52 | 52 | */ |
53 | 53 | public function provides() |
54 | 54 | { |
@@ -25,31 +25,31 @@ |
||
25 | 25 | protected $defer = false; |
26 | 26 | |
27 | 27 | /** |
28 | - * Publishes all the config file this package needs to function |
|
29 | - */ |
|
28 | + * Publishes all the config file this package needs to function |
|
29 | + */ |
|
30 | 30 | public function boot() |
31 | 31 | { |
32 | 32 | $path = realpath(__DIR__.'/../resources/config/passwordlist.txt'); |
33 | 33 | $dumbPasswords = collect(explode("\n", file_get_contents($path))); |
34 | 34 | $data = $dumbPasswords->flip(); |
35 | 35 | |
36 | - Validator::extend('dumbpwd', function($attribute, $value, $parameters, $validator) use ($data) { |
|
36 | + Validator::extend('dumbpwd', function($attribute, $value, $parameters, $validator) use ($data) { |
|
37 | 37 | return !$data->has($value); |
38 | - }, 'This password is just too common. Please try another!'); |
|
38 | + }, 'This password is just too common. Please try another!'); |
|
39 | 39 | } |
40 | 40 | |
41 | 41 | /** |
42 | - * Register the application services. |
|
43 | - */ |
|
42 | + * Register the application services. |
|
43 | + */ |
|
44 | 44 | public function register() |
45 | 45 | { |
46 | 46 | |
47 | 47 | } |
48 | 48 | |
49 | 49 | /** |
50 | - * Get the services provided by the provider |
|
51 | - * @return array |
|
52 | - */ |
|
50 | + * Get the services provided by the provider |
|
51 | + * @return array |
|
52 | + */ |
|
53 | 53 | public function provides() |
54 | 54 | { |
55 | 55 | return ['laravel-password']; |
@@ -52,6 +52,6 @@ |
||
52 | 52 | */ |
53 | 53 | public function provides() |
54 | 54 | { |
55 | - return ['laravel-password']; |
|
55 | + return [ 'laravel-password' ]; |
|
56 | 56 | } |
57 | 57 | } |