$adresseResult, "city" => $cityResult ]; } public static function GetSexeLabel(string $sexeKey){ return $sexeKey === 'f' ? 'Mme' : 'Mr'; } public static function RemoveSpaceFromString(string $string){ $stringWithoutSpace = trim($string); $stringWithoutSpace = str_replace(" ",'',$stringWithoutSpace); return $stringWithoutSpace; } public static function GetAbsenceTypeLabelFromKey(string $key){ $label = null; $absenceTypes = VCalendarPropertyConstant::ABSENCE_TYPES_KEYS_VALUES; foreach($absenceTypes as $absenceTypeKey => $absenceTypeLabel){ if($absenceTypeKey == $key){ $label = $absenceTypeLabel; break; } } return $label; } }