mirror of
https://github.com/itflow-org/itflow
synced 2026-07-24 01:10:40 +00:00
remove duplicate formatAddress
This commit is contained in:
@@ -402,9 +402,3 @@ function secondsToTime($inputSeconds) {
|
||||
|
||||
return implode(', ', $timeParts);
|
||||
}
|
||||
|
||||
function formatAddress($address, $city, $state, $zip, $country = '', $separator = "\n") {
|
||||
$cityLine = trim(implode(' ', array_filter([trim("$city,", ' ,') ? "$city," : '', $state, $zip])));
|
||||
$cityLine = rtrim($cityLine, ',');
|
||||
return implode($separator, array_filter([trim($address), $cityLine, trim($country)]));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user