@@ -75,7 +75,7 @@ discard block |
||
| 75 | 75 | // Black pixel |
| 76 | 76 | if($this->bitMatrix->get($j, $i)){ |
| 77 | 77 | // Counting white pixels |
| 78 | - if(($currentState & 1) === 1){ |
|
| 78 | + if(($currentState&1) === 1){ |
|
| 79 | 79 | $currentState++; |
| 80 | 80 | } |
| 81 | 81 | |
@@ -84,7 +84,7 @@ discard block |
||
| 84 | 84 | // White pixel |
| 85 | 85 | else{ |
| 86 | 86 | // Counting black pixels |
| 87 | - if(($currentState & 1) === 0){ |
|
| 87 | + if(($currentState&1) === 0){ |
|
| 88 | 88 | // A winner? |
| 89 | 89 | if($currentState === 4){ |
| 90 | 90 | // Yes |
@@ -330,7 +330,7 @@ discard block |
||
| 330 | 330 | * |
| 331 | 331 | * @return float|null vertical center of finder pattern, or null if not found |
| 332 | 332 | */ |
| 333 | - private function crossCheckVertical(int $startI, int $centerJ, int $maxCount, int $originalStateCountTotal):?float{ |
|
| 333 | + private function crossCheckVertical(int $startI, int $centerJ, int $maxCount, int $originalStateCountTotal): ?float{ |
|
| 334 | 334 | $maxI = $this->bitMatrix->getDimension(); |
| 335 | 335 | $stateCount = $this->getCrossCheckStateCount(); |
| 336 | 336 | |
@@ -413,7 +413,7 @@ discard block |
||
| 413 | 413 | * except it reads horizontally instead of vertically. This is used to cross-cross |
| 414 | 414 | * check a vertical cross check and locate the real center of the alignment pattern. |
| 415 | 415 | */ |
| 416 | - private function crossCheckHorizontal(int $startJ, int $centerI, int $maxCount, int $originalStateCountTotal):?float{ |
|
| 416 | + private function crossCheckHorizontal(int $startJ, int $centerI, int $maxCount, int $originalStateCountTotal): ?float{ |
|
| 417 | 417 | $maxJ = $this->bitMatrix->getDimension(); |
| 418 | 418 | $stateCount = $this->getCrossCheckStateCount(); |
| 419 | 419 | |