Completed
Pull Request — master (#74)
by
unknown
61:21
created
src/app/Http/Traits/UserAgentDetails.php 1 patch
Braces   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -92,8 +92,10 @@
 block discarded – undo
92 92
      */
93 93
     public static function localeLang($locale)
94 94
     {
95
-        if(class_exists('Locale'))
96
-            return \Locale::acceptFromHttp($locale);#origin BUT : Class 'Locale' not found
95
+        if(class_exists('Locale')) {
96
+                    return \Locale::acceptFromHttp($locale);
97
+        }
98
+        #origin BUT : Class 'Locale' not found
97 99
         $a = explode(',', $locale);
98 100
         $a = explode(';', $a[1]);
99 101
         return $a[0];
Please login to merge, or discard this patch.