Code Duplication    Length = 11-11 lines in 2 locations

src/voku/helper/SimpleHtmlDom.php 1 location

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

src/voku/helper/SimpleXmlDom.php 1 location

@@ 404-414 (lines=11) @@
401
     *
402
     * @return SimpleXmlDomInterface|null
403
     */
404
    public function firstChild()
405
    {
406
        /** @var \DOMNode|null $node */
407
        $node = $this->node->firstChild;
408
409
        if ($node === null) {
410
            return null;
411
        }
412
413
        return new static($node);
414
    }
415
416
    /**
417
     * Return elements by .class.