Passed
Push — master ( 95b96d...dc0a0b )
by Magnar Ovedal
02:40
created
src/Rule/UpperCase.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
     {
38 38
         $this->constraints[] = new Count($min, $max, $weight);
39 39
 
40
-        StableSort::usort($this->constraints, function (Count $a, Count $b): int {
40
+        StableSort::usort($this->constraints, function(Count $a, Count $b): int {
41 41
             return $b->getWeight() <=> $a->getWeight();
42 42
         });
43 43
 
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
      */
54 54
     public function test($password, ?int $weight = 1): bool
55 55
     {
56
-        $count = $this->getCount((string)$password);
56
+        $count = $this->getCount((string) $password);
57 57
         $constraint = $this->getViolation($count, $weight);
58 58
 
59 59
         return $constraint === null;
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
      */
68 68
     public function enforce($password): void
69 69
     {
70
-        $count = $this->getCount((string)$password);
70
+        $count = $this->getCount((string) $password);
71 71
         $constraint = $this->getViolation($count);
72 72
 
73 73
         if ($constraint !== null) {
Please login to merge, or discard this patch.