Passed
Push — master ( 155a19...8e7955 )
by Jeremy
63:20 queued 10s
created
src/config/laravel-logger.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -33,13 +33,13 @@
 block discarded – undo
33 33
     | Laravel Logger Authentication Listeners Enable/Disable
34 34
     |--------------------------------------------------------------------------
35 35
     */
36
-    'logAllAuthEvents'      => false,   // May cause a lot of duplication.
37
-    'logAuthAttempts'       => false,   // Successful and Failed -  May cause a lot of duplication.
38
-    'logFailedAuthAttempts' => true,    // Failed Logins
39
-    'logLockOut'            => true,    // Account Lockout
40
-    'logPasswordReset'      => true,    // Password Resets
41
-    'logSuccessfulLogin'    => true,    // Successful Login
42
-    'logSuccessfulLogout'   => true,    // Successful Logout
36
+    'logAllAuthEvents'      => false, // May cause a lot of duplication.
37
+    'logAuthAttempts'       => false, // Successful and Failed -  May cause a lot of duplication.
38
+    'logFailedAuthAttempts' => true, // Failed Logins
39
+    'logLockOut'            => true, // Account Lockout
40
+    'logPasswordReset'      => true, // Password Resets
41
+    'logSuccessfulLogin'    => true, // Successful Login
42
+    'logSuccessfulLogout'   => true, // Successful Logout
43 43
 
44 44
     /*
45 45
     |--------------------------------------------------------------------------
Please login to merge, or discard this patch.
migrations/2017_11_04_103444_create_laravel_logger_activity_table.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
         $tableCheck = Schema::connection($connection)->hasTable($table);
21 21
 
22 22
         if (!$tableCheck) {
23
-            Schema::connection($connection)->create($table, function (Blueprint $table) {
23
+            Schema::connection($connection)->create($table, function(Blueprint $table) {
24 24
                 $table->increments('id');
25 25
                 $table->longText('description');
26 26
                 $table->string('userType');
Please login to merge, or discard this patch.
src/app/Http/Controllers/LaravelLoggerController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@
 block discarded – undo
45 45
      */
46 46
     private function mapAdditionalDetails($collectionItems)
47 47
     {
48
-        $collectionItems->map(function ($collectionItem) {
48
+        $collectionItems->map(function($collectionItem) {
49 49
             $eventTime = Carbon::parse($collectionItem->updated_at);
50 50
             $collectionItem['timePassed'] = $eventTime->diffForHumans();
51 51
             $collectionItem['userAgentDetails'] = UserAgentDetails::details($collectionItem->useragent);
Please login to merge, or discard this patch.
src/app/Http/Traits/UserAgentDetails.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -37,10 +37,10 @@
 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
Please login to merge, or discard this patch.
src/routes/web.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -7,7 +7,7 @@
 block discarded – undo
7 7
 |
8 8
 */
9 9
 
10
-Route::group(['prefix' => 'activity', 'namespace' => 'jeremykenedy\LaravelLogger\App\Http\Controllers', 'middleware' => ['web', 'auth', 'activity']], function () {
10
+Route::group(['prefix' => 'activity', 'namespace' => 'jeremykenedy\LaravelLogger\App\Http\Controllers', 'middleware' => ['web', 'auth', 'activity']], function() {
11 11
 
12 12
     // Dashboards
13 13
     Route::get('/', 'LaravelLoggerController@showAccessLog')->name('activity');
Please login to merge, or discard this patch.
src/app/Http/Traits/ActivityLogger.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -112,7 +112,7 @@
 block discarded – undo
112 112
     private static function prepareErrorMessage($validatorErrors, $data)
113 113
     {
114 114
         $errors = json_decode(json_encode($validatorErrors, true));
115
-        array_walk($errors, function (&$value, $key) use ($data) {
115
+        array_walk($errors, function(&$value, $key) use ($data) {
116 116
             array_push($value, "Value: $data[$key]");
117 117
         });
118 118
 
Please login to merge, or discard this patch.
src/resources/lang/fr/laravel-logger.php 1 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.