Skip to content

Commit

Permalink
remove unnecessary arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
mvdnbrk committed Dec 17, 2024
1 parent 9b37543 commit acbc046
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app/Http/Controllers/DownloadController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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);
Expand All @@ -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);
Expand Down

0 comments on commit acbc046

Please sign in to comment.