@@ -32,7 +32,7 @@ public static function activity($description = null, $details = null)
32
32
if (Crawler::isCrawler ()) {
33
33
$ userType = trans ('LaravelLogger::laravel-logger.userTypes.crawler ' );
34
34
if (is_null ($ description )) {
35
- $ description = $ userType . ' ' . trans ('LaravelLogger::laravel-logger.verbTypes.crawled ' ) . ' ' . Request::fullUrl ();
35
+ $ description = $ userType. ' ' . trans ('LaravelLogger::laravel-logger.verbTypes.crawled ' ). ' ' . Request::fullUrl ();
36
36
}
37
37
}
38
38
@@ -57,13 +57,13 @@ public static function activity($description = null, $details = null)
57
57
break ;
58
58
}
59
59
60
- $ description = $ verb . ' ' . Request::path ();
60
+ $ description = $ verb. ' ' . Request::path ();
61
61
}
62
62
63
- if (isset ($ _SERVER [" HTTP_CF_CONNECTING_IP " ])) {
64
- $ ip = $ _SERVER [" HTTP_CF_CONNECTING_IP " ];
65
- } elseif (isset ($ _SERVER [" HTTP_X_FORWARDED_FOR " ])) {
66
- $ ip = $ _SERVER [" HTTP_X_FORWARDED_FOR " ];
63
+ if (isset ($ _SERVER [' HTTP_CF_CONNECTING_IP ' ])) {
64
+ $ ip = $ _SERVER [' HTTP_CF_CONNECTING_IP ' ];
65
+ } elseif (isset ($ _SERVER [' HTTP_X_FORWARDED_FOR ' ])) {
66
+ $ ip = $ _SERVER [' HTTP_X_FORWARDED_FOR ' ];
67
67
} else {
68
68
$ ip = Request::ip ();
69
69
}
@@ -86,7 +86,7 @@ public static function activity($description = null, $details = null)
86
86
if ($ validator ->fails ()) {
87
87
$ errors = self ::prepareErrorMessage ($ validator ->errors (), $ data );
88
88
if (config ('LaravelLogger.logDBActivityLogFailuresToFile ' )) {
89
- Log::error ('Failed to record activity event. Failed Validation: ' . $ errors );
89
+ Log::error ('Failed to record activity event. Failed Validation: ' . $ errors );
90
90
}
91
91
} else {
92
92
self ::storeActivity ($ data );
0 commit comments