Completed
Push — master ( 13d108...569492 )
by Aitor Riba
02:40
created
src/Builder.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
     public static function trans($string)
20 20
     {
21 21
         $translator = config('laralang.default.translator');
22
-        if (!in_array(config('laralang.default.translator'), ['apertium', 'mymemory'])) {
22
+        if (!in_array(config('laralang.default.translator'), [ 'apertium', 'mymemory' ])) {
23 23
             return "<font style='color:red;'>Laralang doesn't support $translator translator. Check config</font>";
24 24
         } else {
25 25
             if (config('laralang.default.translator') == 'mymemory') {
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
      */
38 38
     public static function languages()
39 39
     {
40
-        $locales = [];
40
+        $locales = [ ];
41 41
         $translations = DB_Translation::distinct()->select('to_lang')->get();
42 42
         foreach ($translations as $object) {
43 43
             array_push($locales, $object->to_lang);
@@ -52,6 +52,6 @@  discard block
 block discarded – undo
52 52
      */
53 53
     public static function allLanguages()
54 54
     {
55
-        return ['English' => 'en', 'Spanish' => 'es', 'Catalan' => 'ca', 'Portuguese' => 'pt', 'Chinese' => 'zh', 'Japanese' => 'ja', 'German' => 'de', 'French' => 'fr'];
55
+        return [ 'English' => 'en', 'Spanish' => 'es', 'Catalan' => 'ca', 'Portuguese' => 'pt', 'Chinese' => 'zh', 'Japanese' => 'ja', 'German' => 'de', 'French' => 'fr' ];
56 56
     }
57 57
 }
Please login to merge, or discard this patch.