Completed
Pull Request — master (#74)
by
unknown
61:21
created
src/app/Http/Traits/UserAgentDetails.php 2 patches
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -37,10 +37,10 @@  discard block
 block discarded – undo
37 37
         $ua_array = explode('|', preg_replace($regex_pat, $replace_pat, $ua, PREG_PATTERN_ORDER));
38 38
 
39 39
         if (count($ua_array) > 1) {
40
-            $return['platform'] = $ua_array[0];  // Windows / iPad / MacOS / BlackBerry
41
-            $return['type'] = $ua_array[1];  // Mozilla / Opera etc.
42
-            $return['renderer'] = $ua_array[2];  // WebKit / Presto / Trident / Gecko etc.
43
-            $return['browser'] = $ua_array[3];  // Chrome / Safari / MSIE / Firefox
40
+            $return['platform'] = $ua_array[0]; // Windows / iPad / MacOS / BlackBerry
41
+            $return['type'] = $ua_array[1]; // Mozilla / Opera etc.
42
+            $return['renderer'] = $ua_array[2]; // WebKit / Presto / Trident / Gecko etc.
43
+            $return['browser'] = $ua_array[3]; // Chrome / Safari / MSIE / Firefox
44 44
 
45 45
             /*
46 46
                Not necessary but this will filter out Chromes ridiculously long version
@@ -92,8 +92,8 @@  discard block
 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); #origin BUT : Class 'Locale' not found
97 97
         $a = explode(',', $locale);
98 98
         $a = explode(';', $a[1]);
99 99
         return $a[0];
Please login to merge, or discard this 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.
src/resources/lang/fr/laravel-logger.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -140,11 +140,11 @@
 block discarded – undo
140 140
     |--------------------------------------------------------------------------
141 141
     */
142 142
 
143
-   'messages' => [
143
+    'messages' => [
144 144
         'logClearedSuccessfuly'   => 'Activité effacé avec succès',
145 145
         'logDestroyedSuccessfuly' => 'Activité supprimé avec succès',
146 146
         'logRestoredSuccessfuly'  => 'Activité restauré avec succès',
147
-   ],
147
+    ],
148 148
 
149 149
     /*
150 150
     |--------------------------------------------------------------------------
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@  discard block
 block discarded – undo
10 10
     'userTypes' => [
11 11
         'guest'      => 'Anonyme',
12 12
         'registered' => 'Membre',
13
-        'crawler'    => 'Robot',#extracteur
13
+        'crawler'    => 'Robot', #extracteur
14 14
     ],
15 15
 
16 16
     'verbTypes' => [
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
18 18
         'edited'     => 'Édition',
19 19
         'deleted'    => 'Supprimé',
20 20
         'viewed'     => 'Vu',
21
-        'crawled'    => 'Visité',#trainé
21
+        'crawled'    => 'Visité', #trainé
22 22
     ],
23 23
 
24 24
     'tooltips' => [
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
                 'referer'       => 'Référant',
93 93
 
94 94
                 'methodType'    => 'Type de méthode',
95
-                'createdAt'     => 'Événement',#Event Time
95
+                'createdAt'     => 'Événement', #Event Time
96 96
                 'updatedAt'     => 'Actualisé le',
97 97
                 'deletedAt'     => 'Éffacé le',
98 98
                 'timePassed'    => 'Temps écoulé',
Please login to merge, or discard this patch.