@@ -1,6 +1,6 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | namespace voku\helper; |
| 6 | 6 | |
@@ -64,7 +64,7 @@ discard block |
||
| 64 | 64 | private function loadLanguageData(string $language = 'de') |
| 65 | 65 | { |
| 66 | 66 | if (\in_array($language, self::$availableLanguages, true) === false) { |
| 67 | - throw new StopWordsLanguageNotExists('language not supported: ' . $language); |
|
| 67 | + throw new StopWordsLanguageNotExists('language not supported: '.$language); |
|
| 68 | 68 | } |
| 69 | 69 | |
| 70 | 70 | $this->stopWords[$language] = $this->getData($language); |
@@ -85,7 +85,7 @@ discard block |
||
| 85 | 85 | return $RESULT_STOP_WORDS_CACHE[$file]; |
| 86 | 86 | } |
| 87 | 87 | |
| 88 | - $file = __DIR__ . '/stopwords/' . $file . '.php'; |
|
| 88 | + $file = __DIR__.'/stopwords/'.$file.'.php'; |
|
| 89 | 89 | if (file_exists($file)) { |
| 90 | 90 | /** @noinspection PhpIncludeInspection */ |
| 91 | 91 | $RESULT_STOP_WORDS_CACHE[$file] = require $file; |
@@ -108,7 +108,7 @@ discard block |
||
| 108 | 108 | public function getStopWordsFromLanguage(string $language = 'de'): array |
| 109 | 109 | { |
| 110 | 110 | if (\in_array($language, self::$availableLanguages, true) === false) { |
| 111 | - throw new StopWordsLanguageNotExists('language not supported: ' . $language); |
|
| 111 | + throw new StopWordsLanguageNotExists('language not supported: '.$language); |
|
| 112 | 112 | } |
| 113 | 113 | |
| 114 | 114 | if (!isset($this->stopWords[$language])) { |
@@ -284,7 +284,7 @@ |
||
| 284 | 284 | 'stando', |
| 285 | 285 | ]; |
| 286 | 286 | |
| 287 | -$result =& $data; |
|
| 287 | +$result = & $data; |
|
| 288 | 288 | unset($data); |
| 289 | 289 | return $result; |
| 290 | 290 | |
@@ -99,6 +99,6 @@ |
||
| 99 | 99 | 'sådan', |
| 100 | 100 | ]; |
| 101 | 101 | |
| 102 | -$result =& $data; |
|
| 102 | +$result = & $data; |
|
| 103 | 103 | unset($data); |
| 104 | 104 | return $result; |
@@ -167,6 +167,6 @@ |
||
| 167 | 167 | 'صفر', |
| 168 | 168 | ]; |
| 169 | 169 | |
| 170 | -$result =& $data; |
|
| 170 | +$result = & $data; |
|
| 171 | 171 | unset($data); |
| 172 | 172 | return $result; |
@@ -40,6 +40,6 @@ |
||
| 40 | 40 | 'ära', |
| 41 | 41 | ]; |
| 42 | 42 | |
| 43 | -$result =& $data; |
|
| 43 | +$result = & $data; |
|
| 44 | 44 | unset($data); |
| 45 | 45 | return $result; |
@@ -264,6 +264,6 @@ |
||
| 264 | 264 | 'як', |
| 265 | 265 | ]; |
| 266 | 266 | |
| 267 | -$result =& $data; |
|
| 267 | +$result = & $data; |
|
| 268 | 268 | unset($data); |
| 269 | 269 | return $result; |
@@ -184,6 +184,6 @@ |
||
| 184 | 184 | 'što', |
| 185 | 185 | ]; |
| 186 | 186 | |
| 187 | -$result =& $data; |
|
| 187 | +$result = & $data; |
|
| 188 | 188 | unset($data); |
| 189 | 189 | return $result; |
@@ -324,6 +324,6 @@ |
||
| 324 | 324 | 'the', |
| 325 | 325 | ]; |
| 326 | 326 | |
| 327 | -$result =& $data; |
|
| 327 | +$result = & $data; |
|
| 328 | 328 | unset($data); |
| 329 | 329 | return $result; |
@@ -712,6 +712,6 @@ |
||
| 712 | 712 | 'zéro', |
| 713 | 713 | ]; |
| 714 | 714 | |
| 715 | -$result =& $data; |
|
| 715 | +$result = & $data; |
|
| 716 | 716 | unset($data); |
| 717 | 717 | return $result; |