diff options
author | Andres Rey <[email protected]> | 2017-12-01 17:17:19 +0000 |
---|---|---|
committer | StyleCI Bot <[email protected]> | 2017-12-01 17:17:19 +0000 |
commit | 995d6fb8045bbbebfe8578f86431aa522985ee6e (patch) | |
tree | 1f78f7ad34992c4502f0e9153aced92ac4b1ae76 /src/NodeClass/NodeClassTrait.php | |
parent | 35f81ed82beffcacbaa3e2937e90a8cf30b4f9ec (diff) |
Apply fixes from StyleCI
Diffstat (limited to 'src/NodeClass/NodeClassTrait.php')
-rw-r--r-- | src/NodeClass/NodeClassTrait.php | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/NodeClass/NodeClassTrait.php b/src/NodeClass/NodeClassTrait.php index a1382d1..f2df51a 100644 --- a/src/NodeClass/NodeClassTrait.php +++ b/src/NodeClass/NodeClassTrait.php @@ -7,14 +7,14 @@ use andreskrey\Readability\NodeUtility; trait NodeClassTrait { /** - * Content score of the node. Used to determine the value of the content + * Content score of the node. Used to determine the value of the content. * * @var int */ public $contentScore = 0; /** - * Flag for initialized status + * Flag for initialized status. * * @var bool */ @@ -38,7 +38,7 @@ trait NodeClassTrait ]; /** - * initialized getter + * initialized getter. * * @return bool */ @@ -53,6 +53,7 @@ trait NodeClassTrait * @ TODO: I don't like the weightClasses param. How can we get the config here? * * @param $weightClasses bool Weight classes? + * * @return static */ public function initializeNode($weightClasses) @@ -181,7 +182,6 @@ trait NodeClassTrait return $linkLength / $textLength; } - /** * Calculates the weight of the class/id of the current element. * @@ -283,7 +283,6 @@ trait NodeClassTrait return ['rows' => $rows, 'columns' => $columns]; } - /** * Creates a new node based on the text content of the original node. * |