fix CodeSniffer offences

This commit is contained in:
Sarah Hoffmann
2017-10-13 23:11:09 +02:00
parent 00265af528
commit cdf8c67898
3 changed files with 8 additions and 9 deletions

View File

@@ -1275,8 +1275,7 @@ class Geocode
$aResult['name'] = $aResult['langaddress']; $aResult['name'] = $aResult['langaddress'];
if ($oCtx->hasNearPoint()) if ($oCtx->hasNearPoint()) {
{
$aResult['importance'] = 0.001; $aResult['importance'] = 0.001;
$aResult['foundorder'] = $aResult['addressimportance']; $aResult['foundorder'] = $aResult['addressimportance'];
} else { } else {

View File

@@ -9,7 +9,7 @@ namespace Nominatim;
*/ */
class Phrase class Phrase
{ {
CONST MAX_DEPTH = 7; const MAX_DEPTH = 7;
// Complete phrase as a string. // Complete phrase as a string.
private $sPhrase; private $sPhrase;
@@ -113,4 +113,4 @@ class Phrase
return $aResult; return $aResult;
} }
}; }