Passed
Push — master ( 18042e...561abd )
by Magnar Ovedal
03:44
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.