src/Zephyrus/Network/Response/DownloadResponses.php
Method download
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function download(string $filePath, ?string $filename = null, bool $deleteAfter = false): Response
{
if (!File::exists($filePath)) {
throw new InvalidArgumentException("Specified file doesn't exists");
}