@@ -139,7 +139,7 @@ |
||
| 139 | 139 | ->setType(MatcherFactoryInterface::class) |
| 140 | 140 | ->getNode(); |
| 141 | 141 | $stmts = array_map( |
| 142 | - function (PhpAstNode $stmt): PhpAstNode { |
|
| 142 | + function(PhpAstNode $stmt): PhpAstNode { |
|
| 143 | 143 | return $stmt instanceof Expr ? new Expression($stmt) : $stmt; |
| 144 | 144 | }, |
| 145 | 145 | $this->stmts |
@@ -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 | |