Completed
Pull Request — master (#13)
by
unknown
01:49
created
src/DumbPasswordServiceProvider.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
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) {
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -35,10 +35,10 @@  discard block
 block discarded – undo
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
 block discarded – undo
60 60
      */
61 61
     public function provides()
62 62
     {
63
-        return ['laravel-password'];
63
+        return [ 'laravel-password' ];
64 64
     }
65 65
 }
Please login to merge, or discard this patch.