:octocat: +several coverage tests & cleanup

This commit is contained in:
smiley
2022-07-26 17:15:49 +02:00
parent 4aa66dd574
commit 9db842d6ca
15 changed files with 334 additions and 18 deletions
+1 -1
View File
@@ -103,7 +103,7 @@ final class Binarizer{
// If there is too little contrast in the image to pick a meaningful black point, throw rather
// than waste time trying to decode the image, and risk false positives.
if($secondPeak - $firstPeak <= $numBuckets / 16){
throw new QRCodeDecoderException('no meaningful dark point found');
throw new QRCodeDecoderException('no meaningful dark point found'); // @codeCoverageIgnore
}
// Find a valley between them that is low and closer to the white peak.