From f1acfcd34be424a08962443cecc0bee2285c6496 Mon Sep 17 00:00:00 2001 From: Andres Rey Date: Fri, 4 Nov 2016 19:12:35 +0000 Subject: Applied fixes from StyleCI --- src/Readability.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Readability.php') 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); -- cgit v1.2.3