diff options
author | Andres Rey <[email protected]> | 2017-03-10 10:54:32 +0000 |
---|---|---|
committer | StyleCI Bot <[email protected]> | 2017-03-10 10:54:32 +0000 |
commit | 52b15698db988be358bc36bcca3ac8facd6003e2 (patch) | |
tree | f5bb723beb912776e0308b776405a4f71a06c9d5 /src/Readability.php | |
parent | f57d028a5d808fd0ab88588ca3247c927ec27323 (diff) |
Apply fixes from StyleCI
Diffstat (limited to 'src/Readability.php')
-rw-r--r-- | src/Readability.php | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/Readability.php b/src/Readability.php index 44633b2..c55e0ad 100644 --- a/src/Readability.php +++ b/src/Readability.php @@ -253,7 +253,7 @@ class Readability extends Element implements ReadabilityInterface { // Check if the setAttribute method exists, as some elements lack of it (and calling it anyway throws an exception) if (method_exists($this->node, 'setAttribute')) { - $this->contentScore = (float)$score; + $this->contentScore = (float) $score; // Set score in an attribute of the tag to prevent losing it while creating new Readability objects. $this->node->setAttribute('data-readability', $this->contentScore); @@ -286,7 +286,7 @@ class Readability extends Element implements ReadabilityInterface * element with the new tag name and importing it to the main DOMDocument. * * @param string $value - * @param bool $importAttributes + * @param bool $importAttributes */ public function setNodeTag($value, $importAttributes = false) { @@ -343,7 +343,7 @@ class Readability extends Element implements ReadabilityInterface * for parents. * * @param Readability $originalNode - * @param bool $ignoreSelfAndKids + * @param bool $ignoreSelfAndKids * * @return Readability */ @@ -419,7 +419,7 @@ class Readability extends Element implements ReadabilityInterface * Creates a new node based on the text content of the original node. * * @param Readability $originalNode - * @param string $tagName + * @param string $tagName * * @return Readability */ @@ -466,8 +466,8 @@ class Readability extends Element implements ReadabilityInterface * provided one. * * @param Readability $node - * @param string $tagName - * @param int $maxDepth + * @param string $tagName + * @param int $maxDepth * * @return bool */ |