@@ -668,10 +668,10 @@ public function cleanConditionally(\DOMElement $e, string $tag): void
668
668
$ this ->logger ->debug (' content length less than 6 chars, 0 embeds and either 0 images or more than 2 images ' );
669
669
$ toRemove = true ;
670
670
} elseif (!$ isList && $ weight < 25 && $ linkDensity > 0.25 ) {
671
- $ this ->logger ->debug (' weight is ' . $ weight . ' < 25 and link density is ' . sprintf ('%.2f ' , $ linkDensity ) . ' > 0.25 ' );
671
+ $ this ->logger ->debug (' weight is ' . $ weight . ' < 25 and link density is ' . \ sprintf ('%.2f ' , $ linkDensity ) . ' > 0.25 ' );
672
672
$ toRemove = true ;
673
673
} elseif ($ a > 2 && ($ weight >= 25 && $ linkDensity > 0.5 )) {
674
- $ this ->logger ->debug (' more than 2 links and weight is ' . $ weight . ' > 25 but link density is ' . sprintf ('%.2f ' , $ linkDensity ) . ' > 0.5 ' );
674
+ $ this ->logger ->debug (' more than 2 links and weight is ' . $ weight . ' > 25 but link density is ' . \ sprintf ('%.2f ' , $ linkDensity ) . ' > 0.5 ' );
675
675
$ toRemove = true ;
676
676
} elseif ($ embedCount > 3 ) {
677
677
$ this ->logger ->debug (' more than 3 embeds ' );
@@ -691,10 +691,10 @@ public function cleanConditionally(\DOMElement $e, string $tag): void
691
691
$ this ->logger ->debug (' content length less than 10 chars and 0 images, or more than 2 images ' );
692
692
$ toRemove = true ;
693
693
} elseif (!$ isList && $ weight < 25 && $ linkDensity > 0.2 ) {
694
- $ this ->logger ->debug (' weight is ' . $ weight . ' lower than 0 and link density is ' . sprintf ('%.2f ' , $ linkDensity ) . ' > 0.2 ' );
694
+ $ this ->logger ->debug (' weight is ' . $ weight . ' lower than 0 and link density is ' . \ sprintf ('%.2f ' , $ linkDensity ) . ' > 0.2 ' );
695
695
$ toRemove = true ;
696
696
} elseif ($ weight >= 25 && $ linkDensity > 0.5 ) {
697
- $ this ->logger ->debug (' weight above 25 but link density is ' . sprintf ('%.2f ' , $ linkDensity ) . ' > 0.5 ' );
697
+ $ this ->logger ->debug (' weight above 25 but link density is ' . \ sprintf ('%.2f ' , $ linkDensity ) . ' > 0.5 ' );
698
698
$ toRemove = true ;
699
699
} elseif ((1 === $ embedCount && $ contentLength < 75 ) || $ embedCount > 1 ) {
700
700
$ this ->logger ->debug (' 1 embed and content length smaller than 75 chars, or more than one embed ' );
0 commit comments