@@ -353,8 +353,9 @@ |
||
| 353 | 353 | */ |
| 354 | 354 | public function contents() { |
| 355 | 355 | $results = $this->collection()->reduce(function($carry, $node) { |
| 356 | - if($node->isRemoved()) |
|
| 357 | - return $this->newNodeList(); |
|
| 356 | + if($node->isRemoved()) { |
|
| 357 | + return $this->newNodeList(); |
|
| 358 | + } |
|
| 358 | 359 | return $carry->merge( |
| 359 | 360 | $node->newNodeList($node->childNodes) |
| 360 | 361 | ); |