|
@@ -57,7 +57,7 @@ final class Detector{
|
|
|
$alignmentPattern = null;
|
|
$alignmentPattern = null;
|
|
|
|
|
|
|
|
// Anything above version 1 has an alignment pattern
|
|
// Anything above version 1 has an alignment pattern
|
|
|
- if(!empty($provisionalVersion->getAlignmentPattern())){
|
|
|
|
|
|
|
+ if($provisionalVersion->getAlignmentPattern() !== []){
|
|
|
// Guess where a "bottom right" finder pattern would have been
|
|
// Guess where a "bottom right" finder pattern would have been
|
|
|
$bottomRightX = ($topRight->getX() - $topLeft->getX() + $bottomLeft->getX());
|
|
$bottomRightX = ($topRight->getX() - $topLeft->getX() + $bottomLeft->getX());
|
|
|
$bottomRightY = ($topRight->getY() - $topLeft->getY() + $bottomLeft->getY());
|
|
$bottomRightY = ($topRight->getY() - $topLeft->getY() + $bottomLeft->getY());
|