summaryrefslogtreecommitdiff
path: root/src/Readability.php
diff options
context:
space:
mode:
authorAndres Rey <[email protected]>2016-11-14 17:26:23 +0000
committerAndres Rey <[email protected]>2016-11-14 17:26:23 +0000
commitc33298328f73e6c8f34e07ec9e92f2b6dd3c514b (patch)
treec8c84d15774dbc34b4485ccb7b5a94c715ae0563 /src/Readability.php
parentfadc0c437251f797b2c224e97d55b3dec6b7d6cb (diff)
Minor fixes
Diffstat (limited to 'src/Readability.php')
-rw-r--r--src/Readability.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Readability.php b/src/Readability.php
index f4e7b86..35b6514 100644
--- a/src/Readability.php
+++ b/src/Readability.php
@@ -87,7 +87,7 @@ class Readability extends Element implements ReadabilityInterface
$node = $this;
- while (($node) ? $node->getParent() : $node) {
+ while ($node) {
$ancestors[] = new static($node->node);
$level++;
if ($level >= $maxLevel) {