@@ -49,7 +49,7 @@ public function __construct(BitMatrix $matrix){
4949 * @return \chillerlan\QRCode\Detector\FinderPattern[]
5050 */
5151 public function find ():array {
52- $ dimension = $ this ->matrix ->size ();
52+ $ dimension = $ this ->matrix ->getSize ();
5353
5454 // We are looking for black/white/black/white/black modules in
5555 // 1:1:3:1:1 ratio; this tracks the number of such modules seen so far
@@ -286,7 +286,7 @@ private function crossCheckDiagonal(int $centerI, int $centerJ):bool{
286286 return false ;
287287 }
288288
289- $ dimension = $ this ->matrix ->size ();
289+ $ dimension = $ this ->matrix ->getSize ();
290290
291291 // Now also count down, right from center
292292 $ i = 1 ;
@@ -331,7 +331,7 @@ private function crossCheckDiagonal(int $centerI, int $centerJ):bool{
331331 * @noinspection DuplicatedCode
332332 */
333333 private function crossCheckVertical (int $ startI , int $ centerJ , int $ maxCount , int $ originalStateCountTotal ):?float {
334- $ maxI = $ this ->matrix ->size ();
334+ $ maxI = $ this ->matrix ->getSize ();
335335 $ stateCount = $ this ->getCrossCheckStateCount ();
336336
337337 // Start counting up from center
@@ -415,7 +415,7 @@ private function crossCheckVertical(int $startI, int $centerJ, int $maxCount, in
415415 * @noinspection DuplicatedCode
416416 */
417417 private function crossCheckHorizontal (int $ startJ , int $ centerI , int $ maxCount , int $ originalStateCountTotal ):?float {
418- $ maxJ = $ this ->matrix ->size ();
418+ $ maxJ = $ this ->matrix ->getSize ();
419419 $ stateCount = $ this ->getCrossCheckStateCount ();
420420
421421 $ j = $ startJ ;
0 commit comments