Skip to content

Commit

Permalink
fix phpstan
Browse files Browse the repository at this point in the history
  • Loading branch information
SergioMendolia committed Sep 1, 2024
1 parent a0238ea commit 131f095
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/Command/BooksTagCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class BooksTagCommand extends Command
{
public function __construct(
private readonly EntityManagerInterface $em,
private readonly TagPrompt $tagPrompt
private readonly TagPrompt $tagPrompt,
) {
parent::__construct();
}
Expand Down
2 changes: 1 addition & 1 deletion src/Controller/BookController.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ public function read(
PaginatorInterface $paginator,
ThemeSelector $themeSelector,
EntityManagerInterface $manager,
BookProgressionService $bookProgressionService
BookProgressionService $bookProgressionService,
): Response {
set_time_limit(120);
if ($slug !== $book->getSlug()) {
Expand Down
2 changes: 1 addition & 1 deletion src/Controller/Kobo/KoboStateController.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public function __construct(
protected KoboStoreProxy $koboStoreProxy,
protected SerializerInterface $serializer,
protected EntityManagerInterface $em,
protected BookProgressionService $bookProgressionService
protected BookProgressionService $bookProgressionService,
) {
}

Expand Down
2 changes: 1 addition & 1 deletion src/Kobo/DownloadHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ public function getResponse(Book $book): StreamedResponse

$response->headers->set('Content-Type', match (strtolower($book->getExtension())) {
'epub', 'epub3' => 'application/epub+zip',
default => 'application/octet-stream'
default => 'application/octet-stream',
});
$response->headers->set('Content-Disposition',
sprintf('attachment; filename="%s"; filename*=UTF-8\'\'%s', $simpleName, $encodedFilename));
Expand Down
2 changes: 1 addition & 1 deletion src/Security/KoboTokenHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
class KoboTokenHandler implements AccessTokenHandlerInterface
{
public function __construct(
private KoboDeviceRepository $repository
private KoboDeviceRepository $repository,
) {
}

Expand Down
2 changes: 1 addition & 1 deletion src/Twig/Components/ChatGPTSuggestion.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ final class ChatGPTSuggestion
public function __construct(
private Security $security,
private TagPrompt $tagPrompt,
private SummaryPrompt $summaryPrompt
private SummaryPrompt $summaryPrompt,
) {
$user = $this->security->getUser();
if (!$user instanceof User) {
Expand Down

0 comments on commit 131f095

Please sign in to comment.