Skip to content

Commit

Permalink
Apply fixes from StyleCI
Browse files Browse the repository at this point in the history
  • Loading branch information
KABBOUCHI authored and StyleCIBot committed Sep 4, 2019
1 parent 6af7f60 commit 717b360
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/Http/Middleware/Impersonate.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 * */
Expand Down

0 comments on commit 717b360

Please sign in to comment.