Completed
Push — master ( 1a6df3...e1f23b )
by Magnar Ovedal
06:43 queued 02:41
created
src/Rule/UpperCaseRule.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
     {
52 52
         $this->constraints[] = new CountConstraint($min, $max, $weight);
53 53
 
54
-        StableSort::usort($this->constraints, static function (CountConstraint $a, CountConstraint $b): int {
54
+        StableSort::usort($this->constraints, static function(CountConstraint $a, CountConstraint $b): int {
55 55
             return $b->getWeight() <=> $a->getWeight();
56 56
         });
57 57
 
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
      */
76 76
     public function test($password, ?int $weight = 1): bool
77 77
     {
78
-        $count = $this->getCount((string)$password);
78
+        $count = $this->getCount((string) $password);
79 79
         $constraint = $this->getViolation($count, $weight);
80 80
 
81 81
         return $constraint === null;
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
      */
91 91
     public function validate($password, TranslatorInterface $translator): ?ValidationError
92 92
     {
93
-        $count = $this->getCount((string)$password);
93
+        $count = $this->getCount((string) $password);
94 94
         $constraint = $this->getViolation($count);
95 95
 
96 96
         if ($constraint !== null) {
Please login to merge, or discard this patch.