@@ -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 | |
@@ -95,8 +95,8 @@ |
||
| 95 | 95 | ->setType(EvaluatorInterface::class) |
| 96 | 96 | ->getNode(); |
| 97 | 97 | $stmts = array_map( |
| 98 | - function (PhpAstNode $stmt): PhpAstNode { |
|
| 99 | - return $stmt instanceof Expr ? new Expression($stmt): $stmt; |
|
| 98 | + function(PhpAstNode $stmt): PhpAstNode { |
|
| 99 | + return $stmt instanceof Expr ? new Expression($stmt) : $stmt; |
|
| 100 | 100 | }, |
| 101 | 101 | $this->stmts |
| 102 | 102 | ); |
@@ -86,7 +86,7 @@ discard block |
||
| 86 | 86 | public function matchAnyChild(NodeValueListInterface $source): array |
| 87 | 87 | { |
| 88 | 88 | return array_map( |
| 89 | - function (): Matcher\ChildMatcherInterface { |
|
| 89 | + function(): Matcher\ChildMatcherInterface { |
|
| 90 | 90 | return new Matcher\AnyChildMatcher; |
| 91 | 91 | }, |
| 92 | 92 | $source->getIndexMap()->getInnerIndice() |
@@ -96,7 +96,7 @@ discard block |
||
| 96 | 96 | public function matchPropertyStrictly(array $nameLists): array |
| 97 | 97 | { |
| 98 | 98 | return array_map( |
| 99 | - function (array $nameList): Matcher\ChildMatcherInterface { |
|
| 99 | + function(array $nameList): Matcher\ChildMatcherInterface { |
|
| 100 | 100 | return new Matcher\StrictPropertyMatcher(...$nameList); |
| 101 | 101 | }, |
| 102 | 102 | $nameLists |
@@ -106,7 +106,7 @@ discard block |
||
| 106 | 106 | public function matchElementStrictly(array $indexLists): array |
| 107 | 107 | { |
| 108 | 108 | return array_map( |
| 109 | - function (array $indexList): Matcher\ChildMatcherInterface { |
|
| 109 | + function(array $indexList): Matcher\ChildMatcherInterface { |
|
| 110 | 110 | return new Matcher\StrictElementMatcher(...$indexList); |
| 111 | 111 | }, |
| 112 | 112 | $indexLists |
@@ -122,7 +122,7 @@ discard block |
||
| 122 | 122 | ->fetchIndice($source) |
| 123 | 123 | ); |
| 124 | 124 | return array_map( |
| 125 | - function (int $count) use ($start, $end, $step): Matcher\ChildMatcherInterface { |
|
| 125 | + function(int $count) use ($start, $end, $step): Matcher\ChildMatcherInterface { |
|
| 126 | 126 | return new Matcher\SliceElementMatcher($count, $start, $end, $step); |
| 127 | 127 | }, |
| 128 | 128 | $counts |
@@ -150,7 +150,7 @@ discard block |
||
| 150 | 150 | } |
| 151 | 151 | } |
| 152 | 152 | |
| 153 | - $createArrayElement = function (array $elements) use ($source): ValueInterface { |
|
| 153 | + $createArrayElement = function(array $elements) use ($source): ValueInterface { |
|
| 154 | 154 | return new LiteralArrayValue($source->getIndexMap(), ...$elements); |
| 155 | 155 | }; |
| 156 | 156 | |