dadajuice/zephyrus

View on GitHub
src/Zephyrus/Network/Response/DownloadResponses.php

Summary

Maintainability
A
1 hr
Test Coverage

Method download has 26 lines of code (exceeds 25 allowed). Consider refactoring.
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");
        }
Severity: Minor
Found in src/Zephyrus/Network/Response/DownloadResponses.php - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status