summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndres Rey <[email protected]>2018-03-06 23:22:31 +0000
committerAndres Rey <[email protected]>2018-03-06 23:22:31 +0000
commitaeede462c1f95d62c0724b4d0fc7afb56fa9a6c8 (patch)
tree62bd6818f144588bc1347f0d91ab9f55824bd1ec
parentfa1b3f197a0588dbd5fcab382d54a24dc7ec886d (diff)
Rename getContentObject to getDOMDocument
-rw-r--r--src/Readability.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Readability.php b/src/Readability.php
index fc3eda6..91e703c 100644
--- a/src/Readability.php
+++ b/src/Readability.php
@@ -348,11 +348,11 @@ class Readability
$result[] = $this->getImage();
}
- if (null == $this->getContentObject()) {
+ if (null == $this->getDOMDocument()) {
return $result;
}
- foreach ($this->getContentObject()->getElementsByTagName('img') as $img) {
+ foreach ($this->getDOMDocument()->getElementsByTagName('img') as $img) {
if ($src = $img->getAttribute('src')) {
$result[] = $src;
}
@@ -1570,7 +1570,7 @@ class Readability
/**
* @return DOMDocument|null
*/
- public function getContentObject()
+ public function getDOMDocument()
{
return $this->content;
}