SAREhub/PHP_Commons

View on GitHub
src/SAREhub/Commons/Misc/RetryFunctionWrapper.php

Summary

Maintainability
A
35 mins
Test Coverage

Method __construct has 5 arguments (exceeds 4 allowed). Consider refactoring.
Open

    public function __construct(callable $callback, array $expectedErrorClasses = [], int $maxRetries = 3, float $initialWait = 1.0, int $exponent = 2)
Severity: Minor
Found in src/SAREhub/Commons/Misc/RetryFunctionWrapper.php - About 35 mins to fix

    There must be one blank line after the namespace declaration
    Open

    namespace SAREhub\Commons\Misc;

    Line exceeds 120 characters; contains 151 characters
    Open

        public function __construct(callable $callback, array $expectedErrorClasses = [], int $maxRetries = 3, float $initialWait = 1.0, int $exponent = 2)

    Expected 1 newline at end of file; 0 found
    Open

    }

    There are no issues that match your filters.

    Category
    Status