style: apply php-cs-fixer formatting (PSR-12)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
dae215dd3d
commit
7506a7a3c1
@@ -18,7 +18,8 @@ readonly class DownloadCbzHandler implements QueryHandlerInterface
|
||||
public function __construct(
|
||||
private ChapterRepositoryInterface $chapterRepository,
|
||||
private FileServiceInterface $fileService
|
||||
) {}
|
||||
) {
|
||||
}
|
||||
|
||||
public function handle(QueryInterface $query): ResponseInterface
|
||||
{
|
||||
|
||||
@@ -19,7 +19,8 @@ readonly class DownloadVolumeHandler implements QueryHandlerInterface
|
||||
private ChapterRepositoryInterface $chapterRepository,
|
||||
private MangaRepositoryInterface $mangaRepository,
|
||||
private FileServiceInterface $fileService
|
||||
) {}
|
||||
) {
|
||||
}
|
||||
|
||||
public function handle(QueryInterface $query): ResponseInterface
|
||||
{
|
||||
@@ -46,7 +47,8 @@ readonly class DownloadVolumeHandler implements QueryHandlerInterface
|
||||
$cbzPaths[] = $chapter->getCbzPath();
|
||||
}
|
||||
|
||||
$volumeName = sprintf('%s_vol%d',
|
||||
$volumeName = sprintf(
|
||||
'%s_vol%d',
|
||||
$manga->getSlug()->getValue(),
|
||||
$query->volume
|
||||
);
|
||||
|
||||
@@ -58,7 +58,7 @@ readonly class FindMangaMatchByFilenameHandler
|
||||
}
|
||||
|
||||
// Trier les résultats par score de correspondance (du plus élevé au plus faible)
|
||||
usort($matches, fn($a, $b) => $b->matchScore <=> $a->matchScore);
|
||||
usort($matches, fn ($a, $b) => $b->matchScore <=> $a->matchScore);
|
||||
|
||||
return new MangaMatchResponse(
|
||||
matches: $matches,
|
||||
@@ -119,4 +119,3 @@ readonly class FindMangaMatchByFilenameHandler
|
||||
return $score;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -11,7 +11,8 @@ readonly class GetMangaByIdHandler
|
||||
{
|
||||
public function __construct(
|
||||
private MangaRepositoryInterface $mangaRepository
|
||||
) {}
|
||||
) {
|
||||
}
|
||||
|
||||
public function handle(GetMangaById $query): MangaResponse
|
||||
{
|
||||
|
||||
@@ -12,7 +12,8 @@ readonly class GetMangaBySlugHandler
|
||||
{
|
||||
public function __construct(
|
||||
private MangaRepositoryInterface $mangaRepository
|
||||
) {}
|
||||
) {
|
||||
}
|
||||
|
||||
public function handle(GetMangaBySlug $query): MangaResponse
|
||||
{
|
||||
|
||||
@@ -8,11 +8,13 @@ use App\Domain\Manga\Application\Response\ChapterResponse;
|
||||
use App\Domain\Manga\Domain\Contract\Repository\MangaRepositoryInterface;
|
||||
use App\Domain\Manga\Domain\Exception\MangaNotFoundException;
|
||||
use App\Domain\Manga\Domain\Model\Chapter;
|
||||
|
||||
readonly class GetMangaChaptersHandler
|
||||
{
|
||||
public function __construct(
|
||||
private MangaRepositoryInterface $mangaRepository
|
||||
) {}
|
||||
) {
|
||||
}
|
||||
|
||||
public function handle(GetMangaChapters $query): ChapterListResponse
|
||||
{
|
||||
@@ -48,4 +50,4 @@ readonly class GetMangaChaptersHandler
|
||||
limit: $query->limit
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -10,7 +10,8 @@ readonly class GetMangaListHandler
|
||||
{
|
||||
public function __construct(
|
||||
private MangaRepositoryInterface $mangaRepository
|
||||
) {}
|
||||
) {
|
||||
}
|
||||
|
||||
public function handle(GetMangaList $query): MangaListResponse
|
||||
{
|
||||
@@ -30,4 +31,4 @@ readonly class GetMangaListHandler
|
||||
limit: $query->limit
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -12,7 +12,8 @@ readonly class SearchLocalMangaHandler
|
||||
{
|
||||
public function __construct(
|
||||
private MangaRepositoryInterface $repository
|
||||
) {}
|
||||
) {
|
||||
}
|
||||
|
||||
public function handle(SearchLocalManga $query): MangaListResponse
|
||||
{
|
||||
|
||||
@@ -12,7 +12,8 @@ readonly class SearchMangaHandler
|
||||
{
|
||||
public function __construct(
|
||||
private MangaProviderInterface $mangaProvider
|
||||
) {}
|
||||
) {
|
||||
}
|
||||
|
||||
public function handle(SearchManga $query): MangaSearchResponse
|
||||
{
|
||||
@@ -40,4 +41,4 @@ readonly class SearchMangaHandler
|
||||
)
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user