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