]> git.openstreetmap.org Git - nominatim.git/commitdiff
make linter happy
authorSarah Hoffmann <lonvia@denofr.de>
Thu, 11 Mar 2021 20:14:23 +0000 (21:14 +0100)
committerSarah Hoffmann <lonvia@denofr.de>
Thu, 11 Mar 2021 20:14:23 +0000 (21:14 +0100)
lib-php/SearchDescription.php

index cde21f82d8e8d75de4dc36600da490bc0e9e54df..c207b210c4f0e94f4e117f9b549c8cc3a2db5435 100644 (file)
@@ -268,7 +268,7 @@ class SearchDescription
                         $iOp = Operator::NEAR;
                     }
                     $oSearch->iSearchRank += 2;
-                } else if (!$bFirstToken && !$bLastToken) {
+                } elseif (!$bFirstToken && !$bLastToken) {
                     $oSearch->iSearchRank += 2;
                 }
                 if ($this->sHouseNumber) {
@@ -297,7 +297,7 @@ class SearchDescription
                     $oSearch->aAddress[$iWordID] = $iWordID;
                     $aNewSearches[] = $oSearch;
                 }
-            } else if (empty($this->aNameNonSearch)) {
+            } elseif (empty($this->aNameNonSearch)) {
                 $oSearch = clone $this;
                 $oSearch->iSearchRank++;
                 $oSearch->aName = array($iWordID => $iWordID);