@@ -109,7 +109,7 @@ discard block |
||
109 | 109 | } |
110 | 110 | |
111 | 111 | |
112 | - $available_transoltors = ['apertium', 'mymemory']; |
|
112 | + $available_transoltors = [ 'apertium', 'mymemory' ]; |
|
113 | 113 | |
114 | 114 | // Checks available translators. |
115 | 115 | |
@@ -172,7 +172,7 @@ discard block |
||
172 | 172 | $words = explode(' ', $transObtained); |
173 | 173 | foreach ($words as $word) { |
174 | 174 | if ($word != '') { |
175 | - if ($word[0] == '*') { |
|
175 | + if ($word[ 0 ] == '*') { |
|
176 | 176 | $errors = $errors.substr($word, 1).', '; |
177 | 177 | } |
178 | 178 | } |
@@ -240,7 +240,7 @@ discard block |
||
240 | 240 | $words = explode(' ', $transObtained); |
241 | 241 | foreach ($words as $word) { |
242 | 242 | if ($word != '') { |
243 | - if ($word[0] == '*') { |
|
243 | + if ($word[ 0 ] == '*') { |
|
244 | 244 | $errors = $errors.substr($word, 1).', '; |
245 | 245 | } |
246 | 246 | } |