Skip to content

Commit

Permalink
[PHPStan] Fixed errors after PHPStan update
Browse files Browse the repository at this point in the history
  • Loading branch information
ciastektk committed Sep 6, 2024
1 parent 30e8be8 commit 2344e85
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/bundle/Controller/DownloadImageController.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,6 @@ private function assertDownloadLimitNotExceeded(array $contentIdList): void
}

/**
* @throws \Random\RandomException
* @throws \Exception
*/
private function processDownloading(SearchResult $result): Response
Expand Down Expand Up @@ -122,7 +121,7 @@ private function processDownloading(SearchResult $result): Response
}

/**
* @throws \Random\RandomException
* @throws \Exception
*/
private function downloadSingleImage(Content $content): Response
{
Expand Down Expand Up @@ -152,7 +151,7 @@ private function downloadSingleImage(Content $content): Response
/**
* @param array<\Ibexa\Contracts\Core\Repository\Values\Content\Content> $contentList
*
* @throws \Random\RandomException
* @throws \Exception
*/
private function downloadArchiveWithImages(array $contentList): Response
{
Expand Down Expand Up @@ -230,7 +229,7 @@ private function getImageUri(Value $value): string
}

/**
* @throws \Random\RandomException
* @throws \Exception
*/
private function getImageFileName(Value $value): string
{
Expand Down Expand Up @@ -292,7 +291,7 @@ private function createResponse(
/**
* @param array<\Ibexa\Contracts\Core\Repository\Values\Content\Content> $contentList
*
* @throws \Random\RandomException
* @throws \Exception
*/
private function createArchive(string $name, array $contentList): void
{
Expand All @@ -311,7 +310,7 @@ private function createArchive(string $name, array $contentList): void
}

/**
* @throws \Random\RandomException
* @throws \Exception
*/
private function generateRandomFileName(): string
{
Expand Down

0 comments on commit 2344e85

Please sign in to comment.