From 717b360c60127d297a9437a7145fe8514d95e9ca Mon Sep 17 00:00:00 2001 From: Georges KABBOUCHI Date: Wed, 4 Sep 2019 15:07:52 +0000 Subject: [PATCH] Apply fixes from StyleCI --- src/Http/Middleware/Impersonate.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/Http/Middleware/Impersonate.php b/src/Http/Middleware/Impersonate.php index 0948d31..7d53e62 100644 --- a/src/Http/Middleware/Impersonate.php +++ b/src/Http/Middleware/Impersonate.php @@ -31,19 +31,19 @@ public function handle($request, $next) auth()->check() && - !($response instanceof RedirectResponse) && + ! ($response instanceof RedirectResponse) && - !($response instanceof BinaryFileResponse) && + ! ($response instanceof BinaryFileResponse) && - !($response instanceof StreamedResponse) && + ! ($response instanceof StreamedResponse) && - !($response instanceof JsonResponse) && + ! ($response instanceof JsonResponse) && - !$request->expectsJson() && + ! $request->expectsJson() && Str::startsWith($response->headers->get('Content-Type'), 'text/html') && - !Str::contains($request->path(), 'nova-api') + ! Str::contains($request->path(), 'nova-api') ) { /** @var Response $response * */