Passed
Push — master ( 97f7f8...fdd631 )
by Joël
04:32
created
src/libraries/Gettext.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -154,7 +154,7 @@
 block discarded – undo
154 154
         log_message(
155 155
             (is_string($isSetLocale) ? 'info' : 'error'),
156 156
             'Gettext Library -> ' .
157
-            'Set locale: ' . (is_array($this->_locale) ? print_r($this->_locale, TRUE) : $this->_locale). ' ' .
157
+            'Set locale: ' . (is_array($this->_locale) ? print_r($this->_locale, TRUE) : $this->_locale) . ' ' .
158 158
             'for category: ' . $this->_category
159 159
         );
160 160
 
Please login to merge, or discard this patch.
src/helpers/gettext_helper.php 1 patch
Braces   +6 added lines, -4 removed lines patch added patch discarded remove patch
@@ -22,8 +22,9 @@  discard block
 block discarded – undo
22 22
         if (!empty($domain)) {
23 23
             (new \Gettext())->changeDomain($domain);
24 24
 
25
-            if (!empty($category))
26
-                return (dcgettext($domain, $expression, $category));
25
+            if (!empty($category)) {
26
+                            return (dcgettext($domain, $expression, $category));
27
+            }
27 28
 
28 29
             return (dgettext($domain, $expression));
29 30
         }
@@ -56,8 +57,9 @@  discard block
 block discarded – undo
56 57
         if (!empty($domain)) {
57 58
             (new \Gettext())->changeDomain($domain);
58 59
 
59
-            if (!empty($category))
60
-                return (dcngettext($domain, $expression_singular, $expression_plural, $number, $category));
60
+            if (!empty($category)) {
61
+                            return (dcngettext($domain, $expression_singular, $expression_plural, $number, $category));
62
+            }
61 63
 
62 64
             return (dngettext($domain, $expression_singular, $expression_plural, $number));
63 65
         }
Please login to merge, or discard this patch.