@@ -347,8 +347,9 @@ |
||
| 347 | 347 | */ |
| 348 | 348 | public function contents(): NodeList { |
| 349 | 349 | $results = $this->collection()->reduce(function($carry, $node) { |
| 350 | - if($node->isRemoved()) |
|
| 351 | - return $this->newNodeList(); |
|
| 350 | + if($node->isRemoved()) { |
|
| 351 | + return $this->newNodeList(); |
|
| 352 | + } |
|
| 352 | 353 | return $carry->merge( |
| 353 | 354 | $node->newNodeList($node->childNodes) |
| 354 | 355 | ); |