Passed
Push — master ( a58db8...e5bbdd )
by Magnar Ovedal
02:43
created
src/Rule/GuessableData.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@
 block discarded – undo
54 54
     {
55 55
         if ($password instanceof Password) {
56 56
             foreach ($password->getGuessableData() as $data) {
57
-                if ($this->contains((string)$password, $data)) {
57
+                if ($this->contains((string) $password, $data)) {
58 58
                     return false;
59 59
                 }
60 60
             }
Please login to merge, or discard this patch.
src/Rule/UpperCase.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@
 block discarded – undo
64 64
      */
65 65
     public function test($password): bool
66 66
     {
67
-        $count = $this->getCount((string)$password);
67
+        $count = $this->getCount((string) $password);
68 68
 
69 69
         if ($count < $this->min) {
70 70
             return false;
Please login to merge, or discard this patch.
src/Rule/HaveIBeenPwned.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
      */
118 118
     public function test($password): bool
119 119
     {
120
-        $count = $this->getCount((string)$password);
120
+        $count = $this->getCount((string) $password);
121 121
 
122 122
         if ($count < $this->min) {
123 123
             return false;
@@ -206,7 +206,7 @@  discard block
 block discarded – undo
206 206
             $lines = explode("\r\n", $contents);
207 207
             foreach ($lines as $line) {
208 208
                 if (substr($line, 0, 35) === $suffix) {
209
-                    return (int)substr($line, 36);
209
+                    return (int) substr($line, 36);
210 210
                 }
211 211
             }
212 212
             return 0;
Please login to merge, or discard this patch.
src/Rule/CharacterClass.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@
 block discarded – undo
64 64
      */
65 65
     public function test($password): bool
66 66
     {
67
-        $count = $this->getCount((string)$password);
67
+        $count = $this->getCount((string) $password);
68 68
 
69 69
         if ($count < $this->min) {
70 70
             return false;
Please login to merge, or discard this patch.
src/Rule/Length.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@
 block discarded – undo
64 64
      */
65 65
     public function test($password): bool
66 66
     {
67
-        $count = $this->getCount((string)$password);
67
+        $count = $this->getCount((string) $password);
68 68
 
69 69
         if ($count < $this->min) {
70 70
             return false;
Please login to merge, or discard this patch.
src/Rule/LowerCase.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@
 block discarded – undo
64 64
      */
65 65
     public function test($password): bool
66 66
     {
67
-        $count = $this->getCount((string)$password);
67
+        $count = $this->getCount((string) $password);
68 68
 
69 69
         if ($count < $this->min) {
70 70
             return false;
Please login to merge, or discard this patch.
src/Password.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -80,7 +80,7 @@
 block discarded – undo
80 80
     {
81 81
         $this->formerPasswords = array_merge($this->formerPasswords, $formerPasswords);
82 82
 
83
-        StableSort::usort($this->formerPasswords, function (FormerPassword $a, FormerPassword $b): int {
83
+        StableSort::usort($this->formerPasswords, function(FormerPassword $a, FormerPassword $b): int {
84 84
             return $b->getDate() <=> $a->getDate();
85 85
         });
86 86
     }
Please login to merge, or discard this patch.
src/Rule/Dictionary.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -74,7 +74,7 @@
 block discarded – undo
74 74
      */
75 75
     public function test($password): bool
76 76
     {
77
-        $password = (string)$password;
77
+        $password = (string) $password;
78 78
         for ($start = 0; $start < mb_strlen($password); ++$start) {
79 79
             $word = mb_substr($password, $start, $this->maxWordLength);
80 80
 
Please login to merge, or discard this patch.
src/Rule/NoReuse.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -89,7 +89,7 @@
 block discarded – undo
89 89
             }
90 90
 
91 91
             for ($i = $start; $i < $end; ++$i) {
92
-                if ($this->hashFunction->compare((string)$password, (string)$formerPasswords[$i])) {
92
+                if ($this->hashFunction->compare((string) $password, (string) $formerPasswords[$i])) {
93 93
                     return false;
94 94
                 }
95 95
             }
Please login to merge, or discard this patch.