Conditions | 2 |
Paths | 2 |
Total Lines | 14 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Tests | 8 |
CRAP Score | 2 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
51 | final protected function dispatch(): ResponseInterface |
||
52 | 1 | { |
|
53 | $client = new Client($this->configs); |
||
54 | 1 | ||
55 | $this->setPsr7RequestHeader(); |
||
56 | 1 | ||
57 | try { |
||
58 | return $client->request( |
||
59 | 1 | $this->method, |
|
60 | 1 | $this->pathUri, |
|
61 | 1 | $this->options |
|
62 | 1 | ); |
|
63 | } catch (TransferException $exception) { |
||
64 | 1 | return $this->exceptionHandlers($exception); |
|
65 | 1 | } |
|
89 |