diff --git a/app/Http/Controllers/DownloadController.php b/app/Http/Controllers/DownloadController.php index 881c832..2b147a9 100644 --- a/app/Http/Controllers/DownloadController.php +++ b/app/Http/Controllers/DownloadController.php @@ -28,10 +28,10 @@ public function __invoke(Inscription $inscription, string $format) $this->validateFormat($format); if ($format === 'svg') { - return $this->downloadSVG($inscription); + return $this->downloadSVG(); } - return $this->downloadImage($inscription, $format); + return $this->downloadImage(); } private function validateFormat(string $format): void @@ -74,7 +74,7 @@ private function getDownloadFileName(Inscription $inscription, string $format): ->toString(); } - private function downloadImage(Inscription $inscription, string $format) + private function downloadImage() { if (! Storage::disk('cloudflare')->exists($this->cloudflare_path)) { abort(404); @@ -92,7 +92,7 @@ private function downloadImage(Inscription $inscription, string $format) ); } - private function downloadSVG(Inscription $inscription) + private function downloadSVG() { if (! Storage::disk('ninjas')->exists($this->file_name)) { abort(404);