split long lines
Some checks are pending
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/pr/woodpecker Pipeline is pending

This commit is contained in:
Simon Vieille 2022-12-04 13:01:56 +01:00
parent 3f04546a6e
commit e1797e1e03
Signed by: deblan
GPG key ID: 579388D585F70417

View file

@ -74,7 +74,8 @@ class CategoryRepository
}
foreach ($categoriesLabels as $k => $category) {
$categoriesLabels[$category['id']] = $category['translations'][$currentLanguage]['name'] ?? $category['translations']['en']['name'];
$categoriesLabels[$category['id']] = $category['translations'][$currentLanguage]['name'] ??
$category['translations']['en']['name'];
unset($categoriesLabels[$k]);
}