@@ -117,7 +117,7 @@ discard block |
||
| 117 | 117 | |
| 118 | 118 | /** |
| 119 | 119 | * @param $city |
| 120 | - * @param $region_code |
|
| 120 | + * @param string $region_code |
|
| 121 | 121 | * |
| 122 | 122 | * @return bool|mixed |
| 123 | 123 | */ |
@@ -252,7 +252,7 @@ discard block |
||
| 252 | 252 | * (теоретически, снизит кол-во слов, которые придется обрабатывать алгоритмом и тем самым увеличит скорость работы, но может не найти слово, если первые буквы не совпадают |
| 253 | 253 | * из-за опечатки или префиксов) |
| 254 | 254 | * |
| 255 | - * @param int|bool $count |
|
| 255 | + * @param boolean $count |
|
| 256 | 256 | */ |
| 257 | 257 | public function isFirstLetters($count = false) |
| 258 | 258 | { |
@@ -83,8 +83,7 @@ |
||
| 83 | 83 | $translited_words = $this->string_helper->arrayTranslit($search_array); |
| 84 | 84 | |
| 85 | 85 | $result = $this->strict === true ? |
| 86 | - $this->fuzzy_helper->findBestMatch($word, $translited_words) : |
|
| 87 | - key($this->fuzzy_helper->findMostSimilarWords($word, $translited_words)); |
|
| 86 | + $this->fuzzy_helper->findBestMatch($word, $translited_words) : key($this->fuzzy_helper->findMostSimilarWords($word, $translited_words)); |
|
| 88 | 87 | |
| 89 | 88 | return $result; |
| 90 | 89 | } |