src/FeedIo/Standard/Atom.php 1 location
|
@@ 53-59 (lines=7) @@
|
50 |
|
* @param Document $document |
51 |
|
* @return mixed |
52 |
|
*/ |
53 |
|
public function canHandle(Document $document) : bool |
54 |
|
{ |
55 |
|
if (!isset($document->getDOMDocument()->documentElement->tagName)) { |
56 |
|
return false; |
57 |
|
} |
58 |
|
return self::ROOT_NODE_TAGNAME === $document->getDOMDocument()->documentElement->tagName; |
59 |
|
} |
60 |
|
|
61 |
|
/** |
62 |
|
* @param DOMDocument $document |
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
|
@@ 71-77 (lines=7) @@
|
68 |
|
* @param Document $document |
69 |
|
* @return boolean |
70 |
|
*/ |
71 |
|
public function canHandle(Document $document) : bool |
72 |
|
{ |
73 |
|
if (!isset($document->getDOMDocument()->documentElement->tagName)) { |
74 |
|
return false; |
75 |
|
} |
76 |
|
return static::ROOT_NODE_TAGNAME === $document->getDOMDocument()->documentElement->tagName; |
77 |
|
} |
78 |
|
|
79 |
|
/** |
80 |
|
* @param DOMDocument $document |