Total Complexity | 6 |
Total Lines | 40 |
Duplicated Lines | 0 % |
Changes | 2 | ||
Bugs | 1 | Features | 0 |
1 | <?php declare(strict_types=1); |
||
14 | trait NodeCommonTrait { |
||
15 | /** |
||
16 | * Checks the density of links within a node, is there not much text and most of it contains linky shit? |
||
17 | * if so it's no good |
||
18 | * |
||
19 | * @param Element $node |
||
20 | * @param float $limit |
||
21 | * |
||
22 | * @return bool |
||
23 | */ |
||
24 | private function isHighLinkDensity(Element $node, float $limit = 1.0): bool { |
||
56 |