@@ -80,7 +80,7 @@ |
||
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 | } |
@@ -74,7 +74,7 @@ |
||
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 |
@@ -89,7 +89,7 @@ |
||
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 | } |