summaryrefslogtreecommitdiff
path: root/src/Readability.php
diff options
context:
space:
mode:
authorAndres Rey <[email protected]>2017-11-29 23:58:04 +0000
committerAndres Rey <[email protected]>2017-11-29 23:58:04 +0000
commitad9f7b246fed8f6316274cbde6baa12485da57e1 (patch)
tree8aa91b8553b3900189e64f7c7f4baf60d07da837 /src/Readability.php
parent86823e6cb1b1ec4a21824bb36b53a3d810d18203 (diff)
Remove node comparing function
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 53bc32d..4b1309c 100644
--- a/src/Readability.php
+++ b/src/Readability.php
@@ -937,7 +937,7 @@ class Readability
foreach ($siblings as $sibling) {
$append = false;
- if ($sibling->compareNodes($sibling, $topCandidate)) {
+ if ($sibling === $topCandidate) {
$append = true;
} else {
$contentBonus = 0;