Completed
Push — master ( 86c869...cf203c )
by Aitor Riba
01:44
created
src/Translation.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
         if ($this->debug === true) {
121 121
             $this->translation = "<font style='color:#00CC00;'>Translation loaded from DB</font>";
122 122
         } else {
123
-            $this->translation = $existing[0]->translation;
123
+            $this->translation = $existing[ 0 ]->translation;
124 124
         }
125 125
 
126 126
         return true;
@@ -131,7 +131,7 @@  discard block
 block discarded – undo
131 131
      */
132 132
     private function checkSave()
133 133
     {
134
-        if ($this->save === true){
134
+        if ($this->save === true) {
135 135
             $trans = new DB_Translation();
136 136
             $trans->string = $this->string;
137 137
             $trans->from_lang = $this->from;
@@ -186,11 +186,11 @@  discard block
 block discarded – undo
186 186
             return;
187 187
         }
188 188
 
189
-        $available_transoltors = ['apertium', 'mymemory'];
189
+        $available_transoltors = [ 'apertium', 'mymemory' ];
190 190
 
191 191
         // Checks available translators.
192 192
 
193
-        if (! in_array($this->translator, $available_transoltors)) {
193
+        if (!in_array($this->translator, $available_transoltors)) {
194 194
             if ($this->debug === true) {
195 195
                 $this->translation = "<font style='color:red;'>Not suported translator: ".$this->translator.'</font>';
196 196
             }
@@ -292,7 +292,7 @@  discard block
 block discarded – undo
292 292
                 $words = explode(' ', $transObtained);
293 293
                 foreach ($words as $word) {
294 294
                     if ($word != '') {
295
-                        if ($word[0] == '*') {
295
+                        if ($word[ 0 ] == '*') {
296 296
                             $errors = $errors.substr($word, 1).', ';
297 297
                         }
298 298
                     }
Please login to merge, or discard this patch.