Completed
Push — master ( ee2839...95eb94 )
by Michal
02:54
created
src/MoLoader.php 3 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
             if (preg_match("/^(?P<lang>[a-z]{2,3})"              // language code
61 61
                 ."(?:_(?P<country>[A-Z]{2}))?"           // country code
62 62
                 ."(?:\.(?P<charset>[-A-Za-z0-9_]+))?"    // charset
63
-                ."(?:@(?P<modifier>[-A-Za-z0-9_]+))?$/",  // @ modifier
63
+                ."(?:@(?P<modifier>[-A-Za-z0-9_]+))?$/", // @ modifier
64 64
                 $locale, $matches)) {
65 65
 
66 66
                 extract($matches);
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
         return $locale_names;
95 95
     }
96 96
 
97
-    public function get_translator($domain='')
97
+    public function get_translator($domain = '')
98 98
     {
99 99
         if (empty($domain)) {
100 100
             $domain = $this->default_domain;
Please login to merge, or discard this patch.
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -71,8 +71,9 @@
 block discarded – undo
71 71
                             array_push($locale_names, "${lang}_$country.$charset@$modifier");
72 72
                         }
73 73
                         array_push($locale_names, "${lang}_$country@$modifier");
74
-                    } elseif ($charset)
75
-                        array_push($locale_names, "${lang}.$charset@$modifier");
74
+                    } elseif ($charset) {
75
+                                            array_push($locale_names, "${lang}.$charset@$modifier");
76
+                    }
76 77
                         array_push($locale_names, "$lang@$modifier");
77 78
                     }
78 79
                 if ($country) {
Please login to merge, or discard this patch.
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@
 block discarded – undo
56 56
     /**
57 57
      * Returns the singleton Response object
58 58
      *
59
-     * @return Response object
59
+     * @return MoLoader object
60 60
      */
61 61
     public static function getInstance()
62 62
     {
Please login to merge, or discard this patch.
src/functions.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
 use MoTranslator\MoLoader;
25 25
 
26 26
 if (!defined('LC_MESSAGES')) {
27
-  define('LC_MESSAGES',	5);
27
+    define('LC_MESSAGES',	5);
28 28
 }
29 29
 
30 30
 /**
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
 use MoTranslator\MoLoader;
25 25
 
26 26
 if (!defined('LC_MESSAGES')) {
27
-  define('LC_MESSAGES',	5);
27
+  define('LC_MESSAGES', 5);
28 28
 }
29 29
 
30 30
 /**
Please login to merge, or discard this patch.