Completed
Pull Request — master (#13)
by
unknown
03:00 queued 01:03
created
src/DumbPasswordServiceProvider.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -36,10 +36,10 @@  discard block
 block discarded – undo
36 36
      */
37 37
     public function boot()
38 38
     {
39
-        Validator::extend('dumbpwd', function ($attribute, $value, $parameters, $validator) {
40
-            $path = realpath(__DIR__ . '/../resources/config/passwordlist.txt');
39
+        Validator::extend('dumbpwd', function($attribute, $value, $parameters, $validator) {
40
+            $path = realpath(__DIR__.'/../resources/config/passwordlist.txt');
41 41
             $cache_key = md5_file($path);
42
-            $data = Cache::rememberForever('dumbpwd_list_' . $cache_key, function () use ($path) {
42
+            $data = Cache::rememberForever('dumbpwd_list_'.$cache_key, function() use ($path) {
43 43
                 return collect(explode("\n", file_get_contents($path)));
44 44
             });
45 45
             return !$data->contains($value);
@@ -61,6 +61,6 @@  discard block
 block discarded – undo
61 61
      */
62 62
     public function provides()
63 63
     {
64
-        return ['laravel-password'];
64
+        return [ 'laravel-password' ];
65 65
     }
66 66
 }
Please login to merge, or discard this patch.