mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-02-16 15:47:58 +00:00
always use brackets on if statements
This adds bracket around all one-line if statements that did not have them yet.
This commit is contained in:
@@ -96,11 +96,15 @@ if ($bIncludeHierarchy) {
|
||||
if ($bGroupHierarchy) {
|
||||
$aPlaceDetails['hierarchy'] = array();
|
||||
foreach ($aHierarchyLines as $aAddressLine) {
|
||||
if ($aAddressLine['type'] == 'yes') $sType = $aAddressLine['class'];
|
||||
else $sType = $aAddressLine['type'];
|
||||
if ($aAddressLine['type'] == 'yes') {
|
||||
$sType = $aAddressLine['class'];
|
||||
} else {
|
||||
$sType = $aAddressLine['type'];
|
||||
}
|
||||
|
||||
if (!isset($aPlaceDetails['hierarchy'][$sType]))
|
||||
if (!isset($aPlaceDetails['hierarchy'][$sType])) {
|
||||
$aPlaceDetails['hierarchy'][$sType] = array();
|
||||
}
|
||||
$aPlaceDetails['hierarchy'][$sType][] = $funcMapAddressLine($aAddressLine);
|
||||
}
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user