summaryrefslogtreecommitdiff
path: root/src/Readability.php
diff options
context:
space:
mode:
authorAndres Rey <[email protected]>2016-11-04 19:12:48 +0000
committerGitHub <[email protected]>2016-11-04 19:12:48 +0000
commit8ccd8a6d72509f25a6fe3c43b5d14baaa4b02bd9 (patch)
tree2b556785092df0e9bceb19359214627524b17784 /src/Readability.php
parenta986f0771dac2e274476246539f2ae3f2cb42cc4 (diff)
parentf1acfcd34be424a08962443cecc0bee2285c6496 (diff)
Merge pull request #6 from andreskrey/analysis-8AbdON
Applied fixes from StyleCI
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 acebd28..a792aeb 100644
--- a/src/Readability.php
+++ b/src/Readability.php
@@ -261,7 +261,7 @@ class Readability extends Element implements ReadabilityInterface
// To prevent the -0 value
// TODO Might not be necessary now
- $this->contentScore = ($score === (double)-0) ? 0 : $score;
+ $this->contentScore = ($score === (float) -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);