Test Failed
Branch master (e58a97)
by Magnar Ovedal
05:35
created
src/Rule/NoReuseRule.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
     {
48 48
         $this->constraints[] = new PositionConstraint($first, $count, $weight);
49 49
 
50
-        StableSort::usort($this->constraints, static function (PositionConstraint $a, PositionConstraint $b): int {
50
+        StableSort::usort($this->constraints, static function(PositionConstraint $a, PositionConstraint $b): int {
51 51
             return $b->getWeight() <=> $a->getWeight();
52 52
         });
53 53
 
@@ -134,7 +134,7 @@  discard block
 block discarded – undo
134 134
             $position = 0;
135 135
             foreach ($password->getFormerPasswords() as $formerPassword) {
136 136
                 $passwordHash = $formerPassword->getHash();
137
-                if ($passwordHash !== null && $this->hashFunction->compare((string)$password, $passwordHash)) {
137
+                if ($passwordHash !== null && $this->hashFunction->compare((string) $password, $passwordHash)) {
138 138
                     $positions[] = $position;
139 139
                 }
140 140
                 ++$position;
@@ -158,7 +158,7 @@  discard block
 block discarded – undo
158 158
         }
159 159
 
160 160
         return $translator->trans(
161
-            'The most recently used password cannot be reused.|' .
161
+            'The most recently used password cannot be reused.|'.
162 162
             'The %count% most recently used passwords cannot be reused.',
163 163
             ['%count%' => $constraint->getCount()]
164 164
         );
Please login to merge, or discard this patch.
src/Rule/GuessableDataRule.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -108,7 +108,7 @@
 block discarded – undo
108 108
             $guessableData = array_merge($guessableData, $password->getGuessableData());
109 109
         }
110 110
 
111
-        $formattedPassword = $this->formatter->apply(CharTree::fromString((string)$password));
111
+        $formattedPassword = $this->formatter->apply(CharTree::fromString((string) $password));
112 112
         foreach ($guessableData as $data) {
113 113
             if ($this->contains($formattedPassword, $data)) {
114 114
                 return $data;
Please login to merge, or discard this patch.
src/CharTree.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
         foreach ($branches as $branch) {
69 69
             // When PHP 7.1 is no longer supported, change to using spl_object_id.
70 70
             $branchHash = spl_object_hash($branch);
71
-            $hash .= ';' . $branchHash;
71
+            $hash .= ';'.$branchHash;
72 72
         }
73 73
 
74 74
         if (!isset(self::$constructMemoization[$hash])) {
@@ -203,7 +203,7 @@  discard block
 block discarded – undo
203 203
      */
204 204
     public function contains(string $string, bool $ignoreCase = false): bool
205 205
     {
206
-        $key = $string . ($ignoreCase ? 1 : 0);
206
+        $key = $string.($ignoreCase ? 1 : 0);
207 207
         if (!isset($this->containsMemoization[$key])) {
208 208
             $this->containsMemoization[$key] = $this->calculateContains($string, $ignoreCase);
209 209
         }
@@ -218,7 +218,7 @@  discard block
 block discarded – undo
218 218
      */
219 219
     public function startsWith(string $string, bool $ignoreCase = false): bool
220 220
     {
221
-        $key = $string . ($ignoreCase ? 1 : 0);
221
+        $key = $string.($ignoreCase ? 1 : 0);
222 222
         if (!isset($this->startsWithMemoization[$key])) {
223 223
             $this->startsWithMemoization[$key] = $this->calculateStartsWith($string, $ignoreCase);
224 224
         }
@@ -300,7 +300,7 @@  discard block
 block discarded – undo
300 300
                     yield $this->root;
301 301
                 } else {
302 302
                     foreach ($branch as $string) {
303
-                        yield $this->root . $string;
303
+                        yield $this->root.$string;
304 304
                     }
305 305
                 }
306 306
             }
Please login to merge, or discard this patch.