Completed
Push — master ( 7644f9...ee2839 )
by Michal
04:25 queued 01:21
created
src/gettext.inc 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
 // LC_MESSAGES is not available if php-gettext is not loaded
36 36
 // while the other constants are already available from session extension.
37 37
 if (!defined('LC_MESSAGES')) {
38
-  define('LC_MESSAGES',	5);
38
+  define('LC_MESSAGES', 5);
39 39
 }
40 40
 
41 41
 
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
     if (preg_match("/^(?P<lang>[a-z]{2,3})"              // language code
75 75
                    ."(?:_(?P<country>[A-Z]{2}))?"           // country code
76 76
                    ."(?:\.(?P<charset>[-A-Za-z0-9_]+))?"    // charset
77
-                   ."(?:@(?P<modifier>[-A-Za-z0-9_]+))?$/",  // @ modifier
77
+                   ."(?:@(?P<modifier>[-A-Za-z0-9_]+))?$/", // @ modifier
78 78
                    $locale, $matches)) {
79 79
 
80 80
       if (isset($matches["lang"])) $lang = $matches["lang"];
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
 /**
111 111
  * Utility function to get a StreamReader for the given text domain.
112 112
  */
113
-function _get_reader($domain=null, $category=5) {
113
+function _get_reader($domain = null, $category = 5) {
114 114
     global $text_domains, $default_domain, $LC_CATEGORIES;
115 115
     if (!isset($domain)) $domain = $default_domain;
116 116
     if (!isset($text_domains[$domain]->l10n)) {
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
         $locale = _setlocale(LC_MESSAGES, 0);
119 119
         $bound_path = isset($text_domains[$domain]->path) ?
120 120
           $text_domains[$domain]->path : './';
121
-        $subpath = $LC_CATEGORIES[$category] ."/$domain.mo";
121
+        $subpath = $LC_CATEGORIES[$category] . "/$domain.mo";
122 122
 
123 123
         $locale_names = get_list_of_locales($locale);
124 124
         $input = null;
@@ -150,7 +150,7 @@  discard block
 block discarded – undo
150 150
 /**
151 151
  * Checks if the current locale is supported on this system.
152 152
  */
153
-function _check_locale_and_function($function=false) {
153
+function _check_locale_and_function($function = false) {
154 154
     global $EMULATEGETTEXT;
155 155
     if ($function and !function_exists($function))
156 156
         return false;
@@ -215,10 +215,10 @@  discard block
 block discarded – undo
215 215
     global $text_domains;
216 216
     // ensure $path ends with a slash ('/' should work for both, but lets still play nice)
217 217
     if (DIRECTORY_SEPARATOR == '\\') {
218
-      if ($path[strlen($path)-1] != '\\' and $path[strlen($path)-1] != '/')
218
+      if ($path[strlen($path) - 1] != '\\' and $path[strlen($path) - 1] != '/')
219 219
         $path .= '\\';
220 220
     } else {
221
-      if ($path[strlen($path)-1] != '/')
221
+      if ($path[strlen($path) - 1] != '/')
222 222
         $path .= '/';
223 223
     }
224 224
     if (!array_key_exists($domain, $text_domains)) {
Please login to merge, or discard this patch.
src/MoLoader.php 1 patch
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.