mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-02-26 11:08:13 +00:00
make phpcs happy
This commit is contained in:
@@ -255,7 +255,6 @@ class Geocode
|
|||||||
) {
|
) {
|
||||||
$this->oPlaceLookup->setAddressAdminLevels(true);
|
$this->oPlaceLookup->setAddressAdminLevels(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public function setQueryFromParams($oParams)
|
public function setQueryFromParams($oParams)
|
||||||
|
|||||||
@@ -277,7 +277,6 @@ class ReverseGeocode
|
|||||||
);
|
);
|
||||||
|
|
||||||
if ($aPlace) {
|
if ($aPlace) {
|
||||||
|
|
||||||
$iDistance = $aPlace['distance'];
|
$iDistance = $aPlace['distance'];
|
||||||
$iPlaceID = $aPlace['place_id'];
|
$iPlaceID = $aPlace['place_id'];
|
||||||
$oResult = new Result($iPlaceID);
|
$oResult = new Result($iPlaceID);
|
||||||
|
|||||||
@@ -62,7 +62,10 @@ if ($aCMDResult['import-data'] || $aCMDResult['all']) {
|
|||||||
|
|
||||||
|
|
||||||
// by default, use all but one processor, but never more than 15.
|
// 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) {
|
if ($iInstances < 1) {
|
||||||
$iInstances = 1;
|
$iInstances = 1;
|
||||||
warn("resetting threads to $iInstances");
|
warn("resetting threads to $iInstances");
|
||||||
|
|||||||
@@ -59,9 +59,9 @@ if (isset($aPlace)) {
|
|||||||
$aPlace['place_id'],
|
$aPlace['place_id'],
|
||||||
$aPlace['lon'],
|
$aPlace['lon'],
|
||||||
$aPlace['lat'],
|
$aPlace['lat'],
|
||||||
$fRadius,
|
$fRadius,
|
||||||
$fLat,
|
$fLat,
|
||||||
$fLon
|
$fLon
|
||||||
);
|
);
|
||||||
|
|
||||||
if ($aOutlineResult) {
|
if ($aOutlineResult) {
|
||||||
|
|||||||
Reference in New Issue
Block a user