dadajuice/zephyrus

View on GitHub
src/Zephyrus/Network/HttpRequester/RequestTypes/HttpUploadRequest.php

Summary

Maintainability
A
1 hr
Test Coverage
F
13%

Method uploadAsChunks has 32 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function uploadAsChunks(string $filePath, array $payload = [], ?callable $callback = null, int $chuckSize = 1024000 * 20)
    {
        if (!is_readable($filePath)) {
            throw new InvalidArgumentException("Specified filepath [$filePath] is not readable and thus cannot be prepared as a remote request file transfer.");
        }

    There are no issues that match your filters.

    Category
    Status