Skip to content

Commit b9ac477

Browse files
committed
save
1 parent ae766a7 commit b9ac477

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

Readme.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ Most used types are TYPE_CODE_128 and TYPE_CODE_39. Because of the best scanner
8282
- TYPE_EAN_5
8383
- TYPE_EAN_8
8484
- TYPE_EAN_13
85+
- TYPE_ITF14 (Also known as GTIN-14)
8586
- TYPE_UPC_A
8687
- TYPE_UPC_E
8788
- TYPE_MSI

tests/VerifiedBarcodeTest.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ class VerifiedBarcodeTest extends TestCase
2323
['type' => BarcodeGenerator::TYPE_INTERLEAVED_2_5, 'barcodes' => ['1234567890']],
2424
['type' => BarcodeGenerator::TYPE_INTERLEAVED_2_5_CHECKSUM, 'barcodes' => ['1234567890']],
2525
['type' => BarcodeGenerator::TYPE_EAN_13, 'barcodes' => ['081231723897', '0049000004632', '004900000463']],
26+
['type' => BarcodeGenerator::TYPE_ITF_14, 'barcodes' => ['00012345600012']],
2627
['type' => BarcodeGenerator::TYPE_CODE_128, 'barcodes' => ['081231723897', '1234567890abcABC-283*33']],
2728
['type' => BarcodeGenerator::TYPE_CODE_128_A, 'barcodes' => ['1234567890']],
2829
['type' => BarcodeGenerator::TYPE_CODE_128_B, 'barcodes' => ['081231723897', '1234567890abcABC-283*33']],
@@ -61,7 +62,8 @@ public function testAllSupportedBarcodeTypes()
6162
}
6263
}
6364

64-
protected function getSaveFilename($value) {
65+
protected function getSaveFilename($value)
66+
{
6567
return preg_replace('/[^a-zA-Z0-9_ \-+]/s', '-', $value);
6668
}
6769
}

0 commit comments

Comments
 (0)