Clean code

This commit is contained in:
Laurent Destailleur 2026-03-16 10:11:31 +01:00
parent fe4da5614a
commit 9db76503e4

View file

@ -276,10 +276,12 @@ function _createStatusBadgeCss($statusName, $statusVarNamePrefix = '', $commentL
$TBadgeBorderOnly = array('0', '1b', '3', '4b', '5', '7', '10');
$thisBadgeTextColor = colorIsLight(${$statusVarNamePrefix.'badgeStatus'.$statusName}) ? '#212529' : '#ffffff';
$varname = $statusVarNamePrefix.'badgeStatus'.$statusName;
$thisBadgeTextColor = colorIsLight(${$varname}) ? '#212529' : '#ffffff';
if (!empty(${$statusVarNamePrefix.'badgeStatus_textColor'.$statusName})) {
$thisBadgeTextColor = ${$statusVarNamePrefix.'badgeStatus_textColor'.$statusName};
$varname = $statusVarNamePrefix.'badgeStatus_textColor'.$statusName;
$thisBadgeTextColor = ${$varname};
}
if (in_array((string) $statusName, $TBadgeBorderOnly)) {