adapted the coding style with phpcs

This commit is contained in:
gemo1011
2018-05-09 13:18:37 +02:00
parent 5f2410119d
commit 625018b654

View File

@@ -151,7 +151,6 @@ class ReverseGeocode
// for POI or street level // for POI or street level
if ($iMaxRank >= 26) { if ($iMaxRank >= 26) {
$sSQL = 'select place_id,parent_place_id,rank_address,country_code,'; $sSQL = 'select place_id,parent_place_id,rank_address,country_code,';
$sSQL .= 'CASE WHEN ST_GeometryType(geometry) in (\'ST_Polygon\',\'ST_MultiPolygon\') THEN ST_distance('.$sPointSQL.', centroid)'; $sSQL .= 'CASE WHEN ST_GeometryType(geometry) in (\'ST_Polygon\',\'ST_MultiPolygon\') THEN ST_distance('.$sPointSQL.', centroid)';
$sSQL .= ' ELSE ST_distance('.$sPointSQL.', geometry) '; $sSQL .= ' ELSE ST_distance('.$sPointSQL.', geometry) ';
@@ -226,5 +225,4 @@ class ReverseGeocode
} }
return $oResult; return $oResult;
} }
} }