Completed
Push — master ( d29c7d...8008cc )
by Lars
06:52
created
src/voku/helper/StopWords.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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])) {
Please login to merge, or discard this patch.
src/voku/helper/stopwords/it.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -284,7 +284,7 @@
 block discarded – undo
284 284
     'stando',
285 285
 ];
286 286
 
287
-$result =& $data;
287
+$result = & $data;
288 288
 unset($data);
289 289
 return $result;
290 290
 
Please login to merge, or discard this patch.
src/voku/helper/stopwords/cz.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -99,6 +99,6 @@
 block discarded – undo
99 99
     'sådan',
100 100
 ];
101 101
 
102
-$result =& $data;
102
+$result = & $data;
103 103
 unset($data);
104 104
 return $result;
Please login to merge, or discard this patch.
src/voku/helper/stopwords/ar.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -167,6 +167,6 @@
 block discarded – undo
167 167
     'صفر',
168 168
 ];
169 169
 
170
-$result =& $data;
170
+$result = & $data;
171 171
 unset($data);
172 172
 return $result;
Please login to merge, or discard this patch.
src/voku/helper/stopwords/et.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,6 +40,6 @@
 block discarded – undo
40 40
     'ära',
41 41
 ];
42 42
 
43
-$result =& $data;
43
+$result = & $data;
44 44
 unset($data);
45 45
 return $result;
Please login to merge, or discard this patch.
src/voku/helper/stopwords/bg.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -264,6 +264,6 @@
 block discarded – undo
264 264
     'як',
265 265
 ];
266 266
 
267
-$result =& $data;
267
+$result = & $data;
268 268
 unset($data);
269 269
 return $result;
Please login to merge, or discard this patch.
src/voku/helper/stopwords/hr.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -184,6 +184,6 @@
 block discarded – undo
184 184
     'što',
185 185
 ];
186 186
 
187
-$result =& $data;
187
+$result = & $data;
188 188
 unset($data);
189 189
 return $result;
Please login to merge, or discard this patch.
src/voku/helper/stopwords/en.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -324,6 +324,6 @@
 block discarded – undo
324 324
     'the',
325 325
 ];
326 326
 
327
-$result =& $data;
327
+$result = & $data;
328 328
 unset($data);
329 329
 return $result;
Please login to merge, or discard this patch.
src/voku/helper/stopwords/fr.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -712,6 +712,6 @@
 block discarded – undo
712 712
     'zéro',
713 713
 ];
714 714
 
715
-$result =& $data;
715
+$result = & $data;
716 716
 unset($data);
717 717
 return $result;
Please login to merge, or discard this patch.