From aeede462c1f95d62c0724b4d0fc7afb56fa9a6c8 Mon Sep 17 00:00:00 2001 From: Andres Rey Date: Tue, 6 Mar 2018 23:22:31 +0000 Subject: Rename getContentObject to getDOMDocument --- src/Readability.php | 6 +++--- 1 file 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; } -- cgit v1.2.3