mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-03-01 12:59:36 +00:00
fix static analysis errors
This commit is contained in:
parent
8f63a9fb9e
commit
1484cea458
2 changed files with 7 additions and 2 deletions
|
|
@ -100,7 +100,10 @@ class LCSCBarcodeScanResult implements BarcodeScanResultInterface
|
|||
$fields = [];
|
||||
|
||||
// This format is comma-separated pairs, values do not contain commas in your sample.
|
||||
$pairs = array_filter(array_map('trim', explode(',', $inner)));
|
||||
$pairs = array_filter(
|
||||
array_map('trim', explode(',', $inner)),
|
||||
static fn(string $s): bool => $s !== ''
|
||||
);
|
||||
|
||||
foreach ($pairs as $pair) {
|
||||
$pos = strpos($pair, ':');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue