@@ 2348-2354 (lines=7) @@ | ||
2345 | if ($mode == QR_MODE_ST) { |
|
2346 | return 0; |
|
2347 | } |
|
2348 | if ($version <= 9) { |
|
2349 | $l = 0; |
|
2350 | } elseif ($version <= 26) { |
|
2351 | $l = 1; |
|
2352 | } else { |
|
2353 | $l = 2; |
|
2354 | } |
|
2355 | return $this->lengthTableBits[$mode][$l]; |
|
2356 | } |
|
2357 | ||
@@ 2368-2374 (lines=7) @@ | ||
2365 | if ($mode == QR_MODE_ST) { |
|
2366 | return 3; |
|
2367 | } |
|
2368 | if ($version <= 9) { |
|
2369 | $l = 0; |
|
2370 | } else if ($version <= 26) { |
|
2371 | $l = 1; |
|
2372 | } else { |
|
2373 | $l = 2; |
|
2374 | } |
|
2375 | $bits = $this->lengthTableBits[$mode][$l]; |
|
2376 | $words = (1 << $bits) - 1; |
|
2377 | if ($mode == QR_MODE_KJ) { |