Passed
Push — master ( a53dd9...85531b )
by Magnar Ovedal
04:36 queued 02:18
created
src/Rule/CharacterClassRule.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.
src/Rule/DictionaryRule.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
             return true;
109 109
         }
110 110
 
111
-        $word = $this->getDictionaryWord((string)$password);
111
+        $word = $this->getDictionaryWord((string) $password);
112 112
 
113 113
         return $word === null;
114 114
     }
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
      */
119 119
     public function validate($password): ?ValidationError
120 120
     {
121
-        $word = $this->getDictionaryWord((string)$password);
121
+        $word = $this->getDictionaryWord((string) $password);
122 122
 
123 123
         if ($word !== null) {
124 124
             return new ValidationError(
Please login to merge, or discard this patch.