@@ -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 |
@@ -143,7 +143,7 @@ discard block |
||
143 | 143 | public function matchAnyChild(NodeValueListInterface $source): array |
144 | 144 | { |
145 | 145 | return array_map( |
146 | - function (): Matcher\ChildMatcherInterface { |
|
146 | + function(): Matcher\ChildMatcherInterface { |
|
147 | 147 | return new Matcher\AnyChildMatcher; |
148 | 148 | }, |
149 | 149 | $source->getIndexMap()->getInnerIndice() |
@@ -153,7 +153,7 @@ discard block |
||
153 | 153 | public function matchPropertyStrictly(array $nameLists): array |
154 | 154 | { |
155 | 155 | return array_map( |
156 | - function (array $nameList): Matcher\ChildMatcherInterface { |
|
156 | + function(array $nameList): Matcher\ChildMatcherInterface { |
|
157 | 157 | return new Matcher\StrictPropertyMatcher(...$nameList); |
158 | 158 | }, |
159 | 159 | $nameLists |
@@ -163,7 +163,7 @@ discard block |
||
163 | 163 | public function matchElementStrictly(array $indexLists): array |
164 | 164 | { |
165 | 165 | return array_map( |
166 | - function (array $indexList): Matcher\ChildMatcherInterface { |
|
166 | + function(array $indexList): Matcher\ChildMatcherInterface { |
|
167 | 167 | return new Matcher\StrictElementMatcher(...$indexList); |
168 | 168 | }, |
169 | 169 | $indexLists |
@@ -67,8 +67,8 @@ |
||
67 | 67 | ->setType(NodeValueInterface::class) |
68 | 68 | ->getNode(); |
69 | 69 | $stmts = array_map( |
70 | - function (\PhpParser\Node $stmt): \PhpParser\Node { |
|
71 | - return $stmt instanceof Expr ? new Expression($stmt): $stmt; |
|
70 | + function(\PhpParser\Node $stmt): \PhpParser\Node { |
|
71 | + return $stmt instanceof Expr ? new Expression($stmt) : $stmt; |
|
72 | 72 | }, |
73 | 73 | $this->stmts |
74 | 74 | ); |