Completed
Push — master ( 8877c9...0f6ba2 )
by Aitor Riba
01:52
created
src/Builder.php 1 patch
Braces   +6 added lines, -2 removed lines patch added patch discarded remove patch
@@ -117,7 +117,9 @@  discard block
 block discarded – undo
117 117
      **/
118 118
     public static function getCode($name = 'default')
119 119
     {
120
-        if ($name == 'default') $name = self::getLanguage();
120
+        if ($name == 'default') {
121
+            $name = self::getLanguage();
122
+        }
121 123
 
122 124
         return self::addCodes([$name])[$name];
123 125
     }
@@ -129,7 +131,9 @@  discard block
 block discarded – undo
129 131
      **/
130 132
     public static function getLanguage($code = 'default')
131 133
     {
132
-        if ($code == 'default') $code = App::getLocale();
134
+        if ($code == 'default') {
135
+            $code = App::getLocale();
136
+        }
133 137
         return self::addNames([$code])[$code];
134 138
     }
135 139
 }
Please login to merge, or discard this patch.