@@ -20,7 +20,7 @@ discard block |
||
20 | 20 | public function handle(Request $request, \Closure $next) |
21 | 21 | { |
22 | 22 | if ($this->shouldLogOperation($request)) { |
23 | - $setProxy=$request->setTrustedProxies(request()->getClientIps(), \Illuminate\Http\Request::HEADER_X_FORWARDED_FOR); |
|
23 | + $setProxy = $request->setTrustedProxies(request()->getClientIps(), \Illuminate\Http\Request::HEADER_X_FORWARDED_FOR); |
|
24 | 24 | $log = [ |
25 | 25 | 'user_id' => Admin::user()->id, |
26 | 26 | 'path' => substr($request->path(), 0, 255), |
@@ -67,7 +67,7 @@ discard block |
||
67 | 67 | return true; |
68 | 68 | } |
69 | 69 | |
70 | - return $allowedMethods->map(function ($method) { |
|
70 | + return $allowedMethods->map(function($method) { |
|
71 | 71 | return strtoupper($method); |
72 | 72 | })->contains($method); |
73 | 73 | } |