Passed
Push — master ( 2db401...bad944 )
by Magnar Ovedal
02:58
created
src/Rule/HaveIBeenPwned.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
     {
53 53
         $this->constraints[] = new Count($min, $max, $weight);
54 54
 
55
-        StableSort::usort($this->constraints, function (Count $a, Count $b): int {
55
+        StableSort::usort($this->constraints, function(Count $a, Count $b): int {
56 56
             return $b->getWeight() <=> $a->getWeight();
57 57
         });
58 58
 
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
      */
106 106
     public function test($password): bool
107 107
     {
108
-        $count = $this->getCount((string)$password);
108
+        $count = $this->getCount((string) $password);
109 109
         $constraint = $this->getViolation($count);
110 110
 
111 111
         return $constraint === null;
@@ -116,7 +116,7 @@  discard block
 block discarded – undo
116 116
      */
117 117
     public function enforce($password): void
118 118
     {
119
-        $count = $this->getCount((string)$password);
119
+        $count = $this->getCount((string) $password);
120 120
         $constraint = $this->getViolation($count);
121 121
 
122 122
         if ($constraint !== null) {
@@ -162,7 +162,7 @@  discard block
 block discarded – undo
162 162
             $lines = explode("\r\n", $contents);
163 163
             foreach ($lines as $line) {
164 164
                 if (substr($line, 0, 35) === $suffix) {
165
-                    return (int)substr($line, 36);
165
+                    return (int) substr($line, 36);
166 166
                 }
167 167
             }
168 168
             return 0;
Please login to merge, or discard this patch.