marcus-campos/maestro

View on GitHub

Showing 4 of 4 total issues

Function getRetryDecider has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.
Open

private static function getRetryDecider()
{
return function (
$retries,
Request $request,
Severity: Minor
Found in src/Rest.php - About 45 mins to fix

Avoid using static access to class '\GuzzleHttp\Middleware' in method 'sendAsync'.
Open

$handler->push(Middleware::retry(self::getRetryDecider()));
Severity: Minor
Found in src/Rest.php by phpmd

Avoid unused parameters such as '$request'.
Open

Request $request,
Severity: Minor
Found in src/Rest.php by phpmd

Avoid using static access to class '\GuzzleHttp\HandlerStack' in method 'sendAsync'.
Open

$handler = HandlerStack::create($curl);
Severity: Minor
Found in src/Rest.php by phpmd
Severity
Category
Status
Source
Language