Method send
has 33 lines of code (exceeds 25 allowed). Consider refactoring.
public function send(): Response
{
$this->assertPredefined();
$requestParameters = [];
Function send
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
public function send(): Response
{
$this->assertPredefined();
$requestParameters = [];
Missing class import via use statement (line '181', column '23').
throw new \Exception('Url former must be set');
Missing class import via use statement (line '134', column '27').
throw new \Exception("Wrong request params type: '{$this->config()->getParamsType()}'");
Missing class import via use statement (line '175', column '23').
throw new \Exception('Request method must be set');
Missing class import via use statement (line '178', column '23').
throw new \Exception('Request resource must be set');
The method send uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
} else {
throw new \Exception("Wrong request params type: '{$this->config()->getParamsType()}'");
}
There are no issues that match your filters.