Use ternary

Signed-off-by: Kamil Tekiela <tekiela246@gmail.com>
This commit is contained in:
Kamil Tekiela 2024-10-21 16:00:37 +01:00
parent 59da756791
commit 8f4280d30b

View File

@ -213,11 +213,6 @@ final class CentralColumnsController implements InvocableController
string $collation,
DatabaseName $db,
): true|Message {
$columnDefault = $colDefault;
if ($columnDefault === 'NONE' && $colDefaultSel !== 'USER_DEFINED') {
$columnDefault = '';
}
return $this->centralColumns->updateOneColumn(
$db->getName(),
'',
@ -228,7 +223,7 @@ final class CentralColumnsController implements InvocableController
$colIsNull !== null,
$collation,
$colExtra ?? '',
$columnDefault,
$colDefault === 'NONE' && $colDefaultSel !== 'USER_DEFINED' ? '' : $colDefault,
);
}