Passed
Push — master ( bf65f8...a39021 )
by Magnar Ovedal
03:21 queued 28s
created
src/Rule/GuessableDataRule.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -133,7 +133,7 @@
 block discarded – undo
133 133
             $guessableData = array_merge($guessableData, $password->getGuessableData());
134 134
         }
135 135
 
136
-        foreach ($this->getFormattedWords((string)$password) as $word) {
136
+        foreach ($this->getFormattedWords((string) $password) as $word) {
137 137
             foreach ($guessableData as $data) {
138 138
                 if ($this->contains($word, $data)) {
139 139
                     return $data;
Please login to merge, or discard this patch.
src/Rule/HaveIBeenPwnedRule.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
     {
54 54
         $this->constraints[] = new CountConstraint($min, $max, $weight);
55 55
 
56
-        StableSort::usort($this->constraints, static function (CountConstraint $a, CountConstraint $b): int {
56
+        StableSort::usort($this->constraints, static function(CountConstraint $a, CountConstraint $b): int {
57 57
             return $b->getWeight() <=> $a->getWeight();
58 58
         });
59 59
 
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
      */
107 107
     public function test($password, ?int $weight = 1): bool
108 108
     {
109
-        $count = $this->getCount((string)$password);
109
+        $count = $this->getCount((string) $password);
110 110
         $constraint = $this->getViolation($count, $weight);
111 111
 
112 112
         return $constraint === null;
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
      */
118 118
     public function validate($password): ?ValidationError
119 119
     {
120
-        $count = $this->getCount((string)$password);
120
+        $count = $this->getCount((string) $password);
121 121
         $constraint = $this->getViolation($count);
122 122
 
123 123
         if ($constraint !== null) {
@@ -174,7 +174,7 @@  discard block
 block discarded – undo
174 174
             $lines = explode("\r\n", $contents);
175 175
             foreach ($lines as $line) {
176 176
                 if (substr($line, 0, 35) === $suffix) {
177
-                    return (int)substr($line, 36);
177
+                    return (int) substr($line, 36);
178 178
                 }
179 179
             }
180 180
             return 0;
Please login to merge, or discard this patch.