File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1313
1414namespace Pimcore \Bundle \StudioBackendBundle \Util \Trait ;
1515
16+ use Closure ;
1617use League \Flysystem \FilesystemException ;
1718use League \Flysystem \FilesystemOperator ;
1819use Pimcore \Bundle \StudioBackendBundle \Exception \Api \ElementStreamResourceNotFoundException ;
2324use Pimcore \Model \Asset \Thumbnail \ImageThumbnailInterface ;
2425use Pimcore \Model \Asset \Video ;
2526use Pimcore \Model \Asset \Video \ImageThumbnailInterface as VideoImageThumbnailInterface ;
26- use Closure ;
2727use Symfony \Component \HttpFoundation \StreamedResponse ;
2828use function is_resource ;
2929use function sprintf ;
Original file line number Diff line number Diff line change 3232 */
3333final class DownloadServiceTest extends Unit
3434{
35-
3635 /**
3736 * @throws Exception
3837 */
@@ -65,7 +64,6 @@ public function testDownloadResourceReturnsStreamedResponse(): void
6564 $ this ->assertInstanceOf (StreamedResponse::class, $ response );
6665 }
6766
68-
6967 /**
7068 * @throws Exception
7169 */
Original file line number Diff line number Diff line change 1313
1414namespace Pimcore \Bundle \StudioBackendBundle \Tests \Unit \Util \Trait ;
1515
16- use Codeception \Test \Unit ;
1716use Closure ;
17+ use Codeception \Test \Unit ;
1818use Exception ;
1919use League \Flysystem \FilesystemOperator ;
2020use League \Flysystem \UnableToReadFile ;
2121use Pimcore \Bundle \StudioBackendBundle \Exception \Api \StreamResourceNotFoundException ;
2222use Pimcore \Bundle \StudioBackendBundle \Util \Constant \HttpResponseHeaders ;
2323use Pimcore \Bundle \StudioBackendBundle \Util \Trait \StreamedResponseTrait ;
2424use Symfony \Component \HttpFoundation \StreamedResponse ;
25+ use function strlen ;
2526
2627/**
2728 * @internal
You can’t perform that action at this time.
0 commit comments