mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-03-07 02:24:08 +00:00
fix CodeSniffer offences
This commit is contained in:
@@ -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 {
|
||||||
|
|||||||
@@ -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;
|
||||||
}
|
}
|
||||||
};
|
}
|
||||||
|
|||||||
@@ -319,11 +319,11 @@ class SearchDescription
|
|||||||
/**
|
/**
|
||||||
* Derive new searches by adding a partial term to the existing search.
|
* Derive new searches by adding a partial term to the existing search.
|
||||||
*
|
*
|
||||||
* @param mixed[] $aSearchTerm Description of the token.
|
* @param mixed[] $aSearchTerm Description of the token.
|
||||||
* @param bool $bStructuredPhrases True if the search is structured.
|
* @param bool $bStructuredPhrases True if the search is structured.
|
||||||
* @param integer $iPhrase Number of the phrase the token is in.
|
* @param integer $iPhrase Number of the phrase the token is in.
|
||||||
* @param array[] $aFullTokens List of full term tokens with the
|
* @param array[] $aFullTokens List of full term tokens with the
|
||||||
* same name.
|
* same name.
|
||||||
*
|
*
|
||||||
* @return SearchDescription[] List of derived search descriptions.
|
* @return SearchDescription[] List of derived search descriptions.
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user