Skip to content

Commit

Permalink
Phpstan level 4
Browse files Browse the repository at this point in the history
  • Loading branch information
casperbakker committed Sep 16, 2023
1 parent da54398 commit c72e5c8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/phpstan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ jobs:
run: composer install --prefer-dist --no-progress --no-interaction

- name: Run analysis
run: vendor/bin/phpstan analyse src --level 2
run: vendor/bin/phpstan analyse src --level 4
2 changes: 1 addition & 1 deletion src/Types/TypeCode128.php
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ public function getBarcodeData(string $code): Barcode
$char_id = ord($char);
if (($char_id >= 241) AND ($char_id <= 244)) {
$code_data[] = $fnc_a[$char_id];
} elseif (($char_id >= 0) AND ($char_id <= 95)) {
} elseif ($char_id <= 95) {
$code_data[] = strpos($keys_a, $char);
} else {
throw new InvalidCharacterException('Char ' . $char . ' is unsupported');
Expand Down

0 comments on commit c72e5c8

Please sign in to comment.