@@ -23,7 +23,7 @@ |
||
23 | 23 | } |
24 | 24 | |
25 | 25 | $meanValue = array_sum($dataList) / $count; |
26 | - $calculateSquaredDifferenceFromMean = function ($value) use ($meanValue): float { |
|
26 | + $calculateSquaredDifferenceFromMean = function($value) use ($meanValue): float { |
|
27 | 27 | return ($value - $meanValue) ** 2; |
28 | 28 | }; |
29 | 29 |
@@ -84,8 +84,8 @@ |
||
84 | 84 | ->setType(NodeValueInterface::class) |
85 | 85 | ->getNode(); |
86 | 86 | $stmts = array_map( |
87 | - function (PhpAstNode $stmt): PhpAstNode { |
|
88 | - return $stmt instanceof Expr ? new Expression($stmt): $stmt; |
|
87 | + function(PhpAstNode $stmt): PhpAstNode { |
|
88 | + return $stmt instanceof Expr ? new Expression($stmt) : $stmt; |
|
89 | 89 | }, |
90 | 90 | $this->stmts |
91 | 91 | ); |
@@ -146,7 +146,7 @@ discard block |
||
146 | 146 | public function matchAnyChild(NodeValueListInterface $source): array |
147 | 147 | { |
148 | 148 | return array_map( |
149 | - function (): Matcher\ChildMatcherInterface { |
|
149 | + function(): Matcher\ChildMatcherInterface { |
|
150 | 150 | return new Matcher\AnyChildMatcher; |
151 | 151 | }, |
152 | 152 | $source->getIndexMap()->getInnerIndice() |
@@ -156,7 +156,7 @@ discard block |
||
156 | 156 | public function matchPropertyStrictly(array $nameLists): array |
157 | 157 | { |
158 | 158 | return array_map( |
159 | - function (array $nameList): Matcher\ChildMatcherInterface { |
|
159 | + function(array $nameList): Matcher\ChildMatcherInterface { |
|
160 | 160 | return new Matcher\StrictPropertyMatcher(...$nameList); |
161 | 161 | }, |
162 | 162 | $nameLists |
@@ -166,7 +166,7 @@ discard block |
||
166 | 166 | public function matchElementStrictly(array $indexLists): array |
167 | 167 | { |
168 | 168 | return array_map( |
169 | - function (array $indexList): Matcher\ChildMatcherInterface { |
|
169 | + function(array $indexList): Matcher\ChildMatcherInterface { |
|
170 | 170 | return new Matcher\StrictElementMatcher(...$indexList); |
171 | 171 | }, |
172 | 172 | $indexLists |
@@ -201,7 +201,7 @@ discard block |
||
201 | 201 | } |
202 | 202 | } |
203 | 203 | |
204 | - $createArrayElement = function (array $elements) use ($source): ValueInterface { |
|
204 | + $createArrayElement = function(array $elements) use ($source): ValueInterface { |
|
205 | 205 | return new LiteralArrayValue($source->getIndexMap(), ...$elements); |
206 | 206 | }; |
207 | 207 |