@@ -81,7 +81,7 @@ discard block |
||
| 81 | 81 | } |
| 82 | 82 | |
| 83 | 83 | |
| 84 | - $available_transoltors = ['apertium']; |
|
| 84 | + $available_transoltors = [ 'apertium' ]; |
|
| 85 | 85 | |
| 86 | 86 | |
| 87 | 87 | // Checks available translators. |
@@ -128,7 +128,7 @@ discard block |
||
| 128 | 128 | |
| 129 | 129 | // replacing special characters |
| 130 | 130 | |
| 131 | - $toReplace = ['_' => ' ']; |
|
| 131 | + $toReplace = [ '_' => ' ' ]; |
|
| 132 | 132 | foreach ($toReplace as $current => $next) { |
| 133 | 133 | $transObtained = str_replace($current, $next, $transObtained); |
| 134 | 134 | } |
@@ -139,11 +139,11 @@ discard block |
||
| 139 | 139 | // Checking debug setting to determinate how to output translation |
| 140 | 140 | |
| 141 | 141 | if ($this->debug == true) { |
| 142 | - $errors = []; |
|
| 142 | + $errors = [ ]; |
|
| 143 | 143 | $words = explode(' ', $transObtained); |
| 144 | 144 | foreach ($words as $word) { |
| 145 | 145 | if ($word != '') { |
| 146 | - if ($word[0] == '*') { |
|
| 146 | + if ($word[ 0 ] == '*') { |
|
| 147 | 147 | array_push($errors, substr($word, 1)); |
| 148 | 148 | } |
| 149 | 149 | } |