@@ -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 | ); |
@@ -89,7 +89,7 @@ discard block |
||
| 89 | 89 | public function matchAnyChild(NodeValueListInterface $source): array |
| 90 | 90 | { |
| 91 | 91 | return array_map( |
| 92 | - function (): Matcher\ChildMatcherInterface { |
|
| 92 | + function(): Matcher\ChildMatcherInterface { |
|
| 93 | 93 | return new Matcher\AnyChildMatcher; |
| 94 | 94 | }, |
| 95 | 95 | $source->getIndexMap()->getInnerIndice() |
@@ -99,7 +99,7 @@ discard block |
||
| 99 | 99 | public function matchPropertyStrictly(array $nameLists): array |
| 100 | 100 | { |
| 101 | 101 | return array_map( |
| 102 | - function (array $nameList): Matcher\ChildMatcherInterface { |
|
| 102 | + function(array $nameList): Matcher\ChildMatcherInterface { |
|
| 103 | 103 | return new Matcher\StrictPropertyMatcher(...$nameList); |
| 104 | 104 | }, |
| 105 | 105 | $nameLists |
@@ -109,7 +109,7 @@ discard block |
||
| 109 | 109 | public function matchElementStrictly(array $indexLists): array |
| 110 | 110 | { |
| 111 | 111 | return array_map( |
| 112 | - function (array $indexList): Matcher\ChildMatcherInterface { |
|
| 112 | + function(array $indexList): Matcher\ChildMatcherInterface { |
|
| 113 | 113 | return new Matcher\StrictElementMatcher(...$indexList); |
| 114 | 114 | }, |
| 115 | 115 | $indexLists |
@@ -119,7 +119,7 @@ discard block |
||
| 119 | 119 | public function matchElementSlice(NodeValueListInterface $source, ?int $start, ?int $end, ?int $step): array |
| 120 | 120 | { |
| 121 | 121 | return array_map( |
| 122 | - function () use ($start, $end, $step): Matcher\ChildMatcherInterface { |
|
| 122 | + function() use ($start, $end, $step) : Matcher\ChildMatcherInterface { |
|
| 123 | 123 | return new Matcher\SliceElementMatcher($this->valueFetcher, $start, $end, $step); |
| 124 | 124 | }, |
| 125 | 125 | $source->getIndexMap()->getInnerIndice() |
@@ -147,7 +147,7 @@ discard block |
||
| 147 | 147 | } |
| 148 | 148 | } |
| 149 | 149 | |
| 150 | - $createArrayElement = function (array $elements) use ($source): ValueInterface { |
|
| 150 | + $createArrayElement = function(array $elements) use ($source): ValueInterface { |
|
| 151 | 151 | return new LiteralArrayValue($source->getIndexMap(), ...$elements); |
| 152 | 152 | }; |
| 153 | 153 | |