Code Duplication    Length = 7-7 lines in 3 locations

src/FeedIo/Standard/Rdf.php 1 location

@@ 41-47 (lines=7) @@
38
     * @param  Document $document
39
     * @return boolean
40
     */
41
    public function canHandle(Document $document) : bool
42
    {
43
        if (!isset($document->getDOMDocument()->documentElement->tagName)) {
44
            return false;
45
        }
46
        return false !== strpos($document->getDOMDocument()->documentElement->tagName, static::ROOT_NODE_TAGNAME);
47
    }
48
49
    /**
50
     * @param  DOMDocument $document

src/FeedIo/Standard/Rss.php 1 location

@@ 72-78 (lines=7) @@
69
     * @param  Document $document
70
     * @return boolean
71
     */
72
    public function canHandle(Document $document) : bool
73
    {
74
        if (!isset($document->getDOMDocument()->documentElement->tagName)) {
75
            return false;
76
        }
77
        return static::ROOT_NODE_TAGNAME === $document->getDOMDocument()->documentElement->tagName;
78
    }
79
80
    /**
81
     * @param  DOMDocument $document

src/FeedIo/Standard/Atom.php 1 location

@@ 55-61 (lines=7) @@
52
     * @param  Document $document
53
     * @return mixed
54
     */
55
    public function canHandle(Document $document) : bool
56
    {
57
        if (!isset($document->getDOMDocument()->documentElement->tagName)) {
58
            return false;
59
        }
60
        return self::ROOT_NODE_TAGNAME === $document->getDOMDocument()->documentElement->tagName;
61
    }
62
63
    /**
64
     * @param  DOMDocument $document