Completed
Pull Request — master (#7)
by
unknown
02:36
created
src/DumbPasswordServiceProvider.php 3 patches
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -32,31 +32,31 @@
 block discarded – undo
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'];
Please login to merge, or discard this patch.
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
 
55 55
     /**
56 56
     * Get the services provided by the provider
57
-    * @return array
57
+    * @return string[]
58 58
     */
59 59
     public function provides()
60 60
     {
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
     /**
65 65
      * Generates a dictionary from the file referenced by the path specified
66 66
      *
67
-     * @param $path
67
+     * @param string $path
68 68
      *
69 69
      * @return array
70 70
      */
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
     */
59 59
     public function provides()
60 60
     {
61
-        return ['laravel-password'];
61
+        return [ 'laravel-password' ];
62 62
     }
63 63
 
64 64
     /**
@@ -70,12 +70,12 @@  discard block
 block discarded – undo
70 70
      */
71 71
     private function generateDictionary($path)
72 72
     {
73
-        $dictionary = [];
73
+        $dictionary = [ ];
74 74
 
75 75
         $handle = fopen($path, "r");
76 76
         if ($handle) {
77 77
             while (($line = fgets($handle)) !== false) {
78
-                $dictionary[trim($line)] = true;
78
+                $dictionary[ trim($line) ] = true;
79 79
             }
80 80
 
81 81
             fclose($handle);
Please login to merge, or discard this patch.