1818namespace Zxing \Common ;
1919
2020use Zxing \NotFoundException ;
21- use Zxing \Common \PerspectiveTransform ;
2221
2322/**
2423 * Implementations of this class can, given locations of finder patterns for a QR code in an
3635abstract class GridSampler
3736{
3837 /**
39- * @var mixed|\Zxing\Common\DefaultGridSampler |null
38+ * @var GridSampler |null
4039 */
4140 private static $ gridSampler ;
4241
@@ -47,7 +46,7 @@ abstract class GridSampler
4746 * in the whole lifetime of the JVM. For instance, an Android activity can swap in
4847 * an implementation that takes advantage of native platform libraries.
4948 *
50- * @param $newGridSampler The platform-specific object to install.
49+ * @param GridSampler $newGridSampler The platform-specific object to install.
5150 */
5251 public static function setGridSampler ($ newGridSampler ): void
5352 {
@@ -77,13 +76,13 @@ public static function getInstance()
7776 * <p>For efficiency, the method will check points from either end of the line until one is found
7877 * to be within the image. Because the set of points are assumed to be linear, this is valid.</p>
7978 *
80- * @param $image image into which the points should map
81- * @param $points actual points in x1,y1,...,xn,yn form
82- * @param ( float|mixed) [] $points
79+ * @param BitMatrix $image image into which the points should map
80+ * @param array $points actual points in x1,y1,...,xn,yn form
81+ * @param float[] $points
8382 *
8483 * @throws NotFoundException if an endpoint is lies outside the image boundaries
8584 *
86- * @psalm-param array<int, float|mixed > $points
85+ * @psalm-param array<int, float> $points
8786 */
8887 protected static function checkAndNudgePoints (
8988 BitMatrix $ image ,
@@ -146,7 +145,7 @@ protected static function checkAndNudgePoints(
146145 * transformation is determined by the coordinates of 4 points, in the original and transformed
147146 * image space.
148147 *
149- * @param $ image image to sample
148+ * @param image $ image to sample
150149 * @param int $dimensionX width of {@link BitMatrix} to sample from image
151150 * @param int $dimensionY height of {@link BitMatrix} to sample from image
152151 * @param float $p1ToX point 1 preimage X
0 commit comments