Passed
Push — release/2.4.2 ( e162a8 )
by Sebastian
02:27 queued 12s
created
src/Constraint/AbstractConstraint.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -63,10 +63,10 @@  discard block
 block discarded – undo
63 63
     private function matchAny(stdClass $data): bool
64 64
     {
65 65
         return $this->conditionVariables
66
-            ->map(function (string $conditionVariable) use ($data) {
66
+            ->map(function(string $conditionVariable) use ($data) {
67 67
                 return $this->matchForVariable($conditionVariable, $data);
68 68
             })
69
-            ->filter(function (bool $match) {
69
+            ->filter(function(bool $match) {
70 70
                 return $match === true;
71 71
             })
72 72
             ->count() > 0;
@@ -75,10 +75,10 @@  discard block
 block discarded – undo
75 75
     private function matchAll(stdClass $data): bool
76 76
     {
77 77
         return $this->conditionVariables
78
-            ->map(function (string $conditionVariable) use ($data) {
78
+            ->map(function(string $conditionVariable) use ($data) {
79 79
                 return $this->matchForVariable($conditionVariable, $data);
80 80
             })
81
-            ->filter(function (bool $match) {
81
+            ->filter(function(bool $match) {
82 82
                 return $match === true;
83 83
             })
84 84
             ->count() === $this->conditionVariables->count();
@@ -87,10 +87,10 @@  discard block
 block discarded – undo
87 87
     private function matchNone(stdClass $data): bool
88 88
     {
89 89
         return $this->conditionVariables
90
-            ->map(function (string $conditionVariable) use ($data) {
90
+            ->map(function(string $conditionVariable) use ($data) {
91 91
                 return $this->matchForVariable($conditionVariable, $data);
92 92
             })
93
-            ->filter(function (bool $match) {
93
+            ->filter(function(bool $match) {
94 94
                 return $match === false;
95 95
             })
96 96
             ->count() === $this->conditionVariables->count();
Please login to merge, or discard this patch.
src/Constraint/Factory.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -23,8 +23,8 @@
 block discarded – undo
23 23
     public static function createConstraint(string $name, string $value, string $match): Constraint
24 24
     {
25 25
         $parts = explode("-", $name);
26
-        $className = implode("", array_map(function ($part) {
27
-            return ucfirst($part);//overridden function
26
+        $className = implode("", array_map(function($part) {
27
+            return ucfirst($part); //overridden function
28 28
         }, $parts));
29 29
         $className = self::NAMESPACE_CONSTRAINTS . $className;
30 30
 
Please login to merge, or discard this patch.
src/Rendering/Choose/ChooseIf.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -105,28 +105,28 @@
 block discarded – undo
105 105
         switch ($this->match) {
106 106
             case Constraint::MATCH_ANY:
107 107
                 return $this->constraints
108
-                    ->map(function (Constraint $constraint) use ($data) {
108
+                    ->map(function(Constraint $constraint) use ($data) {
109 109
                         return $constraint->validate($data);
110 110
                     })
111
-                    ->filter(function (bool $match) {
111
+                    ->filter(function(bool $match) {
112 112
                         return $match === true;
113 113
                     })
114 114
                     ->count() > 0;
115 115
             case Constraint::MATCH_ALL:
116 116
                 return $this->constraints
117
-                    ->map(function (Constraint $constraint) use ($data) {
117
+                    ->map(function(Constraint $constraint) use ($data) {
118 118
                         return $constraint->validate($data);
119 119
                     })
120
-                    ->filter(function (bool $match) {
120
+                    ->filter(function(bool $match) {
121 121
                         return $match === true;
122 122
                     })
123 123
                     ->count() === $this->constraints->count();
124 124
             case Constraint::MATCH_NONE:
125 125
                 return !$this->constraints
126
-                    ->map(function (Constraint $constraint) use ($data) {
126
+                    ->map(function(Constraint $constraint) use ($data) {
127 127
                         return $constraint->validate($data);
128 128
                     })
129
-                    ->filter(function (bool $match) {
129
+                    ->filter(function(bool $match) {
130 130
                         return $match === false;
131 131
                     })
132 132
                     ->count() === $this->constraints->count();
Please login to merge, or discard this patch.
src/Rendering/Choose/Choose.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -83,10 +83,10 @@
 block discarded – undo
83 83
             $result->append($ifCondition->render($data));
84 84
         } elseif ($this->children->hasKey("elseif")) { // ELSEIF
85 85
             $elseIfs = $this->children->get("elseif")
86
-                ->map(function (ChooseIf $elseIf) use ($data) {
86
+                ->map(function(ChooseIf $elseIf) use ($data) {
87 87
                     return new Tuple($elseIf, $elseIf->match($data));
88 88
                 })
89
-                ->filter(function (Tuple $elseIfToMatch) {
89
+                ->filter(function(Tuple $elseIfToMatch) {
90 90
                     return $elseIfToMatch->second === true;
91 91
                 });
92 92
             $matchedIfs = $elseIfs->count() > 0;
Please login to merge, or discard this patch.