mirror of
https://github.com/slawkens/myaac.git
synced 2026-04-23 10:53:32 +02:00
Copilot fixes
This commit is contained in:
@@ -33,7 +33,20 @@ class Items
|
||||
return !in_array($key, ['id', 'article', 'name', 'plural']);
|
||||
}, ARRAY_FILTER_USE_KEY);
|
||||
|
||||
$items[$item['id']] = ['article' => $item['article'], 'name' => $item['name'], 'plural' => $item['plural'] ?? '', 'attributes' => $attributes];
|
||||
$id = $item['id'] ?? null;
|
||||
if ($id === null) {
|
||||
continue;
|
||||
}
|
||||
|
||||
$article = $item['article'] ?? '';
|
||||
$name = $item['name'] ?? '';
|
||||
$plural = $item['plural'] ?? '';
|
||||
$items[$id] = [
|
||||
'article' => $article,
|
||||
'name' => $name,
|
||||
'plural' => $plural,
|
||||
'attributes' => $attributes,
|
||||
];
|
||||
}
|
||||
|
||||
$cache_php = new CachePHP(config('cache_prefix'), CACHE . 'persistent/');
|
||||
|
||||
Reference in New Issue
Block a user