@@ -291,7 +291,7 @@ discard block |
||
291 | 291 | */ |
292 | 292 | public function getIterator(): \ArrayIterator |
293 | 293 | { |
294 | - return new \ArrayIterator(array_map(function (NodeInterface $node) { |
|
294 | + return new \ArrayIterator(array_map(function(NodeInterface $node) { |
|
295 | 295 | return new static($node); |
296 | 296 | }, $this->nodes)); |
297 | 297 | } |
@@ -373,8 +373,7 @@ discard block |
||
373 | 373 | public function eq(int $index): Dom |
374 | 374 | { |
375 | 375 | return array_key_exists($index, $this->nodes) ? |
376 | - new static($this->nodes[$index]) : |
|
377 | - new static(); |
|
376 | + new static($this->nodes[$index]) : new static(); |
|
378 | 377 | } |
379 | 378 | |
380 | 379 | /** |