From: Sarah Hoffmann Date: Fri, 13 Oct 2017 21:11:09 +0000 (+0200) Subject: fix CodeSniffer offences X-Git-Tag: v3.1.0~43^2~1 X-Git-Url: https://git.openstreetmap.org/nominatim.git/commitdiff_plain/cdf8c678988cdad7d10cc52b5ece22196c2491f9 fix CodeSniffer offences --- diff --git a/lib/Geocode.php b/lib/Geocode.php index f7f97593..be543012 100644 --- a/lib/Geocode.php +++ b/lib/Geocode.php @@ -1275,8 +1275,7 @@ class Geocode $aResult['name'] = $aResult['langaddress']; - if ($oCtx->hasNearPoint()) - { + if ($oCtx->hasNearPoint()) { $aResult['importance'] = 0.001; $aResult['foundorder'] = $aResult['addressimportance']; } else { diff --git a/lib/Phrase.php b/lib/Phrase.php index 0fe1d313..b39079d9 100644 --- a/lib/Phrase.php +++ b/lib/Phrase.php @@ -9,7 +9,7 @@ namespace Nominatim; */ class Phrase { - CONST MAX_DEPTH = 7; + const MAX_DEPTH = 7; // Complete phrase as a string. private $sPhrase; @@ -113,4 +113,4 @@ class Phrase return $aResult; } -}; +} diff --git a/lib/SearchDescription.php b/lib/SearchDescription.php index 1325a463..eba5f6a9 100644 --- a/lib/SearchDescription.php +++ b/lib/SearchDescription.php @@ -319,11 +319,11 @@ class SearchDescription /** * Derive new searches by adding a partial term to the existing search. * - * @param mixed[] $aSearchTerm Description of the token. - * @param bool $bStructuredPhrases True if the search is structured. - * @param integer $iPhrase Number of the phrase the token is in. - * @param array[] $aFullTokens List of full term tokens with the - * same name. + * @param mixed[] $aSearchTerm Description of the token. + * @param bool $bStructuredPhrases True if the search is structured. + * @param integer $iPhrase Number of the phrase the token is in. + * @param array[] $aFullTokens List of full term tokens with the + * same name. * * @return SearchDescription[] List of derived search descriptions. */