From 80a6751c51614c0d8baf84c0c52ffdc8ef76ff77 Mon Sep 17 00:00:00 2001 From: Sarah Hoffmann Date: Fri, 6 Jul 2018 22:06:05 +0200 Subject: [PATCH] make phpcs happy --- lib/Geocode.php | 1 - lib/ReverseGeocode.php | 1 - utils/setup.php | 5 ++++- website/reverse.php | 6 +++--- 4 files changed, 7 insertions(+), 6 deletions(-) diff --git a/lib/Geocode.php b/lib/Geocode.php index 2bb94052..a991914e 100644 --- a/lib/Geocode.php +++ b/lib/Geocode.php @@ -255,7 +255,6 @@ class Geocode ) { $this->oPlaceLookup->setAddressAdminLevels(true); } - } public function setQueryFromParams($oParams) diff --git a/lib/ReverseGeocode.php b/lib/ReverseGeocode.php index f854d098..8e5e8bd1 100644 --- a/lib/ReverseGeocode.php +++ b/lib/ReverseGeocode.php @@ -277,7 +277,6 @@ class ReverseGeocode ); if ($aPlace) { - $iDistance = $aPlace['distance']; $iPlaceID = $aPlace['place_id']; $oResult = new Result($iPlaceID); diff --git a/utils/setup.php b/utils/setup.php index e2810737..501ad3f2 100755 --- a/utils/setup.php +++ b/utils/setup.php @@ -62,7 +62,10 @@ if ($aCMDResult['import-data'] || $aCMDResult['all']) { // by default, use all but one processor, but never more than 15. -$iInstances = isset($aCMDResult['threads'])?$aCMDResult['threads']:(min(16,getProcessorCount())-1); +$iInstances = isset($aCMDResult['threads']) + ? $aCMDResult['threads'] + : (min(16, getProcessorCount()) - 1); + if ($iInstances < 1) { $iInstances = 1; warn("resetting threads to $iInstances"); diff --git a/website/reverse.php b/website/reverse.php index db783455..9c6368f0 100755 --- a/website/reverse.php +++ b/website/reverse.php @@ -59,9 +59,9 @@ if (isset($aPlace)) { $aPlace['place_id'], $aPlace['lon'], $aPlace['lat'], - $fRadius, - $fLat, - $fLon + $fRadius, + $fLat, + $fLon ); if ($aOutlineResult) { -- 2.39.5