summaryrefslogtreecommitdiff
path: root/src/Readability.php
diff options
context:
space:
mode:
authorAndres Rey <[email protected]>2016-11-04 19:10:53 +0000
committerAndres Rey <[email protected]>2016-11-04 19:10:53 +0000
commita986f0771dac2e274476246539f2ae3f2cb42cc4 (patch)
treee1a110a1a6b05302af1fda773d58a63b5165eba8 /src/Readability.php
parent14d5e061833fdf8de4254c7c3a94fb43acd1b13f (diff)
Small comment
Diffstat (limited to 'src/Readability.php')
-rw-r--r--src/Readability.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Readability.php b/src/Readability.php
index ed1d2be..acebd28 100644
--- a/src/Readability.php
+++ b/src/Readability.php
@@ -260,7 +260,8 @@ class Readability extends Element implements ReadabilityInterface
if (get_class($this->node) !== 'DOMDocument') {
// To prevent the -0 value
- $this->contentScore = ($score === (float) -0) ? 0 : $score;
+ // TODO Might not be necessary now
+ $this->contentScore = ($score === (double)-0) ? 0 : $score;
// Set score in an attribute of the tag to prevent losing it while creating new Readability objects.
$this->node->setAttribute('readability', $this->contentScore);