@@ -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 | |
@@ -119,8 +119,8 @@ |
||
| 119 | 119 | ->setType(MatcherFactoryInterface::class) |
| 120 | 120 | ->getNode(); |
| 121 | 121 | $stmts = array_map( |
| 122 | - function (PhpAstNode $stmt): PhpAstNode { |
|
| 123 | - return $stmt instanceof Expr ? new Expression($stmt): $stmt; |
|
| 122 | + function(PhpAstNode $stmt): PhpAstNode { |
|
| 123 | + return $stmt instanceof Expr ? new Expression($stmt) : $stmt; |
|
| 124 | 124 | }, |
| 125 | 125 | $this->stmts |
| 126 | 126 | ); |
@@ -21,7 +21,7 @@ |
||
| 21 | 21 | |
| 22 | 22 | public function createArray(NodeValueListInterface $source, ValueListInterface ...$valueLists): ValueListInterface |
| 23 | 23 | { |
| 24 | - $createArrayElement = function (array $elements) use ($source): ValueInterface { |
|
| 24 | + $createArrayElement = function(array $elements) use ($source): ValueInterface { |
|
| 25 | 25 | return new LiteralArrayValue($source->getIndexMap(), ...$elements); |
| 26 | 26 | }; |
| 27 | 27 | |
@@ -25,7 +25,7 @@ discard block |
||
| 25 | 25 | public function deletePaths(NodeValueInterface $rootNode, PathInterface ...$paths): ?NodeValueInterface |
| 26 | 26 | { |
| 27 | 27 | $modifier = new DeleteMutation(...$paths); |
| 28 | - $events = $this |
|
| 28 | + $events = $this |
|
| 29 | 29 | ->valueWalker |
| 30 | 30 | ->createMutableEventIterator($rootNode, new Path, $modifier); |
| 31 | 31 | |
@@ -40,7 +40,7 @@ discard block |
||
| 40 | 40 | PathInterface ...$paths |
| 41 | 41 | ): NodeValueInterface { |
| 42 | 42 | $modifier = new ReplaceMutation($newNode, ...$paths); |
| 43 | - $events = $this |
|
| 43 | + $events = $this |
|
| 44 | 44 | ->valueWalker |
| 45 | 45 | ->createMutableEventIterator($rootNode, new Path, $modifier); |
| 46 | 46 | |