@@ -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 | |
@@ -21,7 +21,7 @@ |
||
| 21 | 21 | |
| 22 | 22 | public function createArray(NodeValueListInterface $source, ValueListInterface ...$valueLists): ValueListInterface |
| 23 | 23 | { |
| 24 | - $createArrayElement = function (array $elements): ValueInterface { |
|
| 24 | + $createArrayElement = function(array $elements): ValueInterface { |
|
| 25 | 25 | return new LiteralArrayValue(...$elements); |
| 26 | 26 | }; |
| 27 | 27 | |
@@ -26,7 +26,7 @@ discard block |
||
| 26 | 26 | public function deletePaths(NodeValueInterface $rootNode, PathInterface ...$paths): ?NodeValueInterface |
| 27 | 27 | { |
| 28 | 28 | $modifier = new DeleteMutation(...$paths); |
| 29 | - $events = $this |
|
| 29 | + $events = $this |
|
| 30 | 30 | ->valueWalker |
| 31 | 31 | ->createMutableEventIterator($rootNode, new Path(), $modifier); |
| 32 | 32 | |
@@ -41,7 +41,7 @@ discard block |
||
| 41 | 41 | PathInterface ...$paths |
| 42 | 42 | ): NodeValueInterface { |
| 43 | 43 | $modifier = new ReplaceMutation($newNode, ...$paths); |
| 44 | - $events = $this |
|
| 44 | + $events = $this |
|
| 45 | 45 | ->valueWalker |
| 46 | 46 | ->createMutableEventIterator($rootNode, new Path(), $modifier); |
| 47 | 47 | |
@@ -72,7 +72,7 @@ discard block |
||
| 72 | 72 | public function getCallback(): callable |
| 73 | 73 | { |
| 74 | 74 | if (!isset($this->callback)) { |
| 75 | - $this->callback = function ( |
|
| 75 | + $this->callback = function( |
|
| 76 | 76 | NodeValueListInterface $input, |
| 77 | 77 | ValueListFetcherInterface $valueListFetcher, |
| 78 | 78 | EvaluatorInterface $evaluator, |
@@ -120,7 +120,7 @@ discard block |
||
| 120 | 120 | public function onFinish(): void |
| 121 | 121 | { |
| 122 | 122 | $stmts = array_map( |
| 123 | - function (PhpAstNode $stmt): PhpAstNode { |
|
| 123 | + function(PhpAstNode $stmt): PhpAstNode { |
|
| 124 | 124 | return $stmt instanceof Expr ? new Expression($stmt) : $stmt; |
| 125 | 125 | }, |
| 126 | 126 | $this->stmts |