Code Duplication    Length = 11-11 lines in 2 locations

src/voku/helper/SimpleXmlDom.php 1 location

@@ 434-444 (lines=11) @@
431
     *
432
     * @return SimpleXmlDomInterface|null
433
     */
434
    public function firstChild()
435
    {
436
        /** @var \DOMNode|null $node */
437
        $node = $this->node->firstChild;
438
439
        if ($node === null) {
440
            return null;
441
        }
442
443
        return new static($node);
444
    }
445
446
    /**
447
     * Return elements by ".class".

src/voku/helper/SimpleHtmlDom.php 1 location

@@ 463-473 (lines=11) @@
460
     *
461
     * @return SimpleHtmlDomInterface|null
462
     */
463
    public function firstChild()
464
    {
465
        /** @var \DOMNode|null $node */
466
        $node = $this->node->firstChild;
467
468
        if ($node === null) {
469
            return null;
470
        }
471
472
        return new static($node);
473
    }
474
475
    /**
476
     * Return elements by ".class".