mirror of
https://github.com/itflow-org/itflow
synced 2026-08-18 21:45:13 +00:00
remove duplicate formatAddress
This commit is contained in:
@@ -402,9 +402,3 @@ function secondsToTime($inputSeconds) {
|
|||||||
|
|
||||||
return implode(', ', $timeParts);
|
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