@@ -118,7 +118,7 @@ discard block |
||
118 | 118 | if ($this->debug === true) { |
119 | 119 | $this->translation = "<font style='color:#00CC00;'>Translation loaded from DB</font>"; |
120 | 120 | } else { |
121 | - $this->translation = $existing[0]->translation; |
|
121 | + $this->translation = $existing[ 0 ]->translation; |
|
122 | 122 | } |
123 | 123 | |
124 | 124 | return true; |
@@ -178,7 +178,7 @@ discard block |
||
178 | 178 | */ |
179 | 179 | public function __toString() |
180 | 180 | { |
181 | - if (!$this->loadIfExists()){ |
|
181 | + if (!$this->loadIfExists()) { |
|
182 | 182 | $this->main(); |
183 | 183 | } |
184 | 184 |
@@ -43,7 +43,7 @@ |
||
43 | 43 | $words = explode(' ', $transObtained); |
44 | 44 | foreach ($words as $word) { |
45 | 45 | if ($word != '') { |
46 | - if ($word[0] == '*') { |
|
46 | + if ($word[ 0 ] == '*') { |
|
47 | 47 | $errors = $errors.substr($word, 1).', '; |
48 | 48 | } |
49 | 49 | } |
@@ -13,14 +13,14 @@ |
||
13 | 13 | public static function trans($string) |
14 | 14 | { |
15 | 15 | $translator = config('laralang.default.translator'); |
16 | - if (!in_array(config('laralang.default.translator'), ['apertium','mymemory'])) { |
|
16 | + if (!in_array(config('laralang.default.translator'), [ 'apertium', 'mymemory' ])) { |
|
17 | 17 | |
18 | 18 | return new Exception("<font style='color:red;'>Laralang doesn't support $translator translator. Check config</font>"); |
19 | 19 | } else { |
20 | 20 | |
21 | 21 | if (config('laralang.default.translator') == 'mymemory') { |
22 | 22 | return new MymemoryTrans($string); |
23 | - } elseif (config('laralang.default.translator') == 'apertium'){ |
|
23 | + } elseif (config('laralang.default.translator') == 'apertium') { |
|
24 | 24 | return new ApertiumTrans($string); |
25 | 25 | } |
26 | 26 | } |