We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent da54398 commit c72e5c8Copy full SHA for c72e5c8
2 files changed
.github/workflows/phpstan.yml
@@ -22,4 +22,4 @@ jobs:
22
run: composer install --prefer-dist --no-progress --no-interaction
23
24
- name: Run analysis
25
- run: vendor/bin/phpstan analyse src --level 2
+ run: vendor/bin/phpstan analyse src --level 4
src/Types/TypeCode128.php
@@ -165,7 +165,7 @@ public function getBarcodeData(string $code): Barcode
165
$char_id = ord($char);
166
if (($char_id >= 241) AND ($char_id <= 244)) {
167
$code_data[] = $fnc_a[$char_id];
168
- } elseif (($char_id >= 0) AND ($char_id <= 95)) {
+ } elseif ($char_id <= 95) {
169
$code_data[] = strpos($keys_a, $char);
170
} else {
171
throw new InvalidCharacterException('Char ' . $char . ' is unsupported');
0 commit comments