make phpcs happy

This commit is contained in:
Sarah Hoffmann 2018-07-06 22:06:05 +02:00
parent 05bef92f0f
commit 80a6751c51
4 changed files with 7 additions and 6 deletions

View File

@ -255,7 +255,6 @@ class Geocode
) {
$this->oPlaceLookup->setAddressAdminLevels(true);
}
}
public function setQueryFromParams($oParams)

View File

@ -277,7 +277,6 @@ class ReverseGeocode
);
if ($aPlace) {
$iDistance = $aPlace['distance'];
$iPlaceID = $aPlace['place_id'];
$oResult = new Result($iPlaceID);

View File

@ -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");

View File

@ -59,9 +59,9 @@ if (isset($aPlace)) {
$aPlace['place_id'],
$aPlace['lon'],
$aPlace['lat'],
$fRadius,
$fLat,
$fLon
$fRadius,
$fLat,
$fLon
);
if ($aOutlineResult) {