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/Atom.php 1 location

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