mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-21 07:03:49 +00:00
DX: apply rector rulesset up to PHP72
This commit is contained in:
@@ -192,9 +192,7 @@ class CreateFieldsOnGroupCommand extends Command
|
||||
|
||||
foreach ($languages as $lang) {
|
||||
//todo replace with service to find lang when available
|
||||
$names[] = (isset($cf->getName()[$lang])) ?
|
||||
$cf->getName()[$lang] :
|
||||
'Not available in this language';
|
||||
$names[] = $cf->getName()[$lang] ?? 'Not available in this language';
|
||||
}
|
||||
|
||||
if ($this->validator->validate($cf)) {
|
||||
@@ -249,9 +247,7 @@ class CreateFieldsOnGroupCommand extends Command
|
||||
|
||||
foreach ($languages as $lang) {
|
||||
//todo replace with service to find lang when available
|
||||
$row[] = (isset($customFieldGroup->getName()[$lang])) ?
|
||||
$customFieldGroup->getName()[$lang] :
|
||||
'Not available in this language';
|
||||
$row[] = $customFieldGroup->getName()[$lang] ?? 'Not available in this language';
|
||||
}
|
||||
$rows[] = $row;
|
||||
}
|
||||
|
Reference in New Issue
Block a user