From 26bd8304c65746b59dd45fc0965343fb3637f6f8 Mon Sep 17 00:00:00 2001 From: Sarah Hoffmann Date: Wed, 22 Aug 2018 22:25:55 +0200 Subject: [PATCH] fix formatting --- lib/template/details-html.php | 30 ++++++++++-------------------- 1 file changed, 10 insertions(+), 20 deletions(-) diff --git a/lib/template/details-html.php b/lib/template/details-html.php index 4d5ccb87..328786e2 100644 --- a/lib/template/details-html.php +++ b/lib/template/details-html.php @@ -46,8 +46,7 @@ function hash_to_subtable($aAssociatedList) { $sHTML = ''; - foreach($aAssociatedList as $sKey => $sValue) - { + foreach ($aAssociatedList as $sKey => $sValue) { $sHTML = $sHTML.'
'.$sValue.' ('.$sKey.')
'."\n"; } return $sHTML; @@ -162,13 +161,10 @@ - $aHierarchyLines) - { + foreach ($aGroupedAddressLines as $sGroupHeading => $aHierarchyLines) { $sGroupHeading = ucwords($sGroupHeading); headline3($sGroupHeading); - foreach($aHierarchyLines as $aAddressLine) - { + foreach ($aHierarchyLines as $aAddressLine) { _one_row($aAddressLine); } } @@ -249,7 +239,7 @@ 'lon' => $aPointDetails['lon'], 'lat' => $aPointDetails['lat'], ); - echo 'var nominatim_result = ' . json_encode($aPlace, JSON_PRETTY_PRINT) . ';'; + echo 'var nominatim_result = ' . json_encode($aPlace, JSON_PRETTY_PRINT) . ';'; ?> -- 2.43.2