@@ -32,7 +32,7 @@ public static function activity($description = null, $details = null)
3232 if (Crawler::isCrawler ()) {
3333 $ userType = trans ('LaravelLogger::laravel-logger.userTypes.crawler ' );
3434 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 ();
3636 }
3737 }
3838
@@ -57,13 +57,13 @@ public static function activity($description = null, $details = null)
5757 break ;
5858 }
5959
60- $ description = $ verb . ' ' . Request::path ();
60+ $ description = $ verb. ' ' . Request::path ();
6161 }
6262
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 ' ];
6767 } else {
6868 $ ip = Request::ip ();
6969 }
@@ -86,7 +86,7 @@ public static function activity($description = null, $details = null)
8686 if ($ validator ->fails ()) {
8787 $ errors = self ::prepareErrorMessage ($ validator ->errors (), $ data );
8888 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 );
9090 }
9191 } else {
9292 self ::storeActivity ($ data );
0 commit comments