8000 fix imports · laravel/lumen-framework@c75483f · GitHub
[go: up one dir, main page]

Skip to content

Commit c75483f

Browse files
committed
fix imports
1 parent ce47355 commit c75483f

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/Application.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
use Illuminate\Config\Repository as ConfigRepository;
2121
use Symfony\Component\HttpKernel\HttpKernelInterface;
2222
use Illuminate\Contracts\Routing\TerminableMiddleware;
23+
use Symfony\Component\HttpFoundation\BinaryFileResponse;
2324
use Symfony\Component\HttpKernel\Exception\HttpException;
2425
use Symfony\Component\HttpFoundation\Request as SymfonyRequest;
2526
use Symfony\Component\HttpFoundation\Response as SymfonyResponse;
@@ -1329,9 +1330,7 @@ public function prepareResponse($response)
13291330
{
13301331
if (! $response instanceof SymfonyResponse) {
13311332
$response = new Response($response);
1332-
}
1333-
1334-
if ($response instanceof BinaryFileResponse) {
1333+
} elseif ($response instanceof BinaryFileResponse) {
13351334
$response = $response->prepare(Request::capture());
13361335
}
13371336

0 commit comments

Comments
 (0)
0