Completed
Pull Request — master (#6)
by
unknown
18:11
created
src/voku/helper/StopWords.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -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/ca.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/cz.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -178,6 +178,6 @@
 block discarded – undo
178 178
     'že',
179 179
 ];
180 180
 
181
-$result =& $data;
181
+$result = & $data;
182 182
 unset($data);
183 183
 return $result;
Please login to merge, or discard this patch.