We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9944c65 commit 02693c9Copy full SHA for 02693c9
src/Types/TypeStandard2of5.php
@@ -26,16 +26,12 @@ public function getBarcodeData(string $code): Barcode
26
$chr['5'] = '11101011101010';
27
$chr['6'] = '10111011101010';
28
$chr['7'] = '10101011101110';
29
- $chr['8'] = '10101110111010';
+ $chr['8'] = '11101010111010';
30
$chr['9'] = '10111010111010';
31
if ($this->checksum) {
32
// add checksum
33
$code .= $this->checksum_s25($code);
34
}
35
- if ((strlen($code) % 2) != 0) {
36
- // add leading zero if code-length is odd
37
- $code = '0' . $code;
38
- }
39
$seq = '11011010';
40
41
for ($i = 0; $i < strlen($code); ++$i) {
0 commit comments