@@ 1319-1326 (lines=8) @@ | ||
1316 | } |
|
1317 | $run = $p; |
|
1318 | $mode = $this->identifyMode($p); |
|
1319 | if ($mode == QR_MODE_8B) { |
|
1320 | $dif = $this->estimateBitsModeNum($run) + 4 + $ln |
|
1321 | + $this->estimateBitsMode8(1) // + 4 + l8 |
|
1322 | - $this->estimateBitsMode8($run + 1); // - 4 - l8 |
|
1323 | if ($dif > 0) { |
|
1324 | return $this->eat8(); |
|
1325 | } |
|
1326 | } |
|
1327 | if ($mode == QR_MODE_AN) { |
|
1328 | $dif = $this->estimateBitsModeNum($run) + 4 + $ln |
|
1329 | + $this->estimateBitsModeAn(1) // + 4 + la |
|
@@ 1327-1334 (lines=8) @@ | ||
1324 | return $this->eat8(); |
|
1325 | } |
|
1326 | } |
|
1327 | if ($mode == QR_MODE_AN) { |
|
1328 | $dif = $this->estimateBitsModeNum($run) + 4 + $ln |
|
1329 | + $this->estimateBitsModeAn(1) // + 4 + la |
|
1330 | - $this->estimateBitsModeAn($run + 1);// - 4 - la |
|
1331 | if ($dif > 0) { |
|
1332 | return $this->eatAn(); |
|
1333 | } |
|
1334 | } |
|
1335 | $this->items = $this->appendNewInputItem($this->items, QR_MODE_NM, $run, str_split($this->dataStr)); |
|
1336 | return $run; |
|
1337 | } |