Completed
Push — master ( 77bc5a...fb6707 )
by Magnar Ovedal
09:03 queued 06:21
created
src/Rule/NoReuseRule.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
     {
47 47
         $this->constraints[] = new PositionConstraint($first, $count, $weight);
48 48
 
49
-        StableSort::usort($this->constraints, static function (PositionConstraint $a, PositionConstraint $b): int {
49
+        StableSort::usort($this->constraints, static function(PositionConstraint $a, PositionConstraint $b): int {
50 50
             return $b->getWeight() <=> $a->getWeight();
51 51
         });
52 52
 
@@ -131,7 +131,7 @@  discard block
 block discarded – undo
131 131
         if ($password instanceof Password) {
132 132
             $position = 0;
133 133
             foreach ($password->getFormerPasswords() as $formerPassword) {
134
-                if ($this->hashFunction->compare((string)$password, (string)$formerPassword)) {
134
+                if ($this->hashFunction->compare((string) $password, (string) $formerPassword)) {
135 135
                     $positions[] = $position;
136 136
                 }
137 137
                 ++$position;
Please login to merge, or discard this patch.
src/Rule/UpperCaseRule.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
     {
39 39
         $this->constraints[] = new CountConstraint($min, $max, $weight);
40 40
 
41
-        StableSort::usort($this->constraints, static function (CountConstraint $a, CountConstraint $b): int {
41
+        StableSort::usort($this->constraints, static function(CountConstraint $a, CountConstraint $b): int {
42 42
             return $b->getWeight() <=> $a->getWeight();
43 43
         });
44 44
 
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
      */
55 55
     public function test($password, ?int $weight = 1): bool
56 56
     {
57
-        $count = $this->getCount((string)$password);
57
+        $count = $this->getCount((string) $password);
58 58
         $constraint = $this->getViolation($count, $weight);
59 59
 
60 60
         return $constraint === null;
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
      */
69 69
     public function validate($password): ?ValidationError
70 70
     {
71
-        $count = $this->getCount((string)$password);
71
+        $count = $this->getCount((string) $password);
72 72
         $constraint = $this->getViolation($count);
73 73
 
74 74
         if ($constraint !== null) {
Please login to merge, or discard this patch.