| Conditions | 1 |
| Paths | 1 |
| Total Lines | 8 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 26 | 1 | public function execute(Command $command): ResponseInterface |
|
| 27 | { |
||
| 28 | 1 | return $this->httpClient->request('POST', $this->rpc->getAddress(), [ |
|
| 29 | 1 | 'headers' => [ |
|
| 30 | 'Content-Type' => 'text/plain' |
||
| 31 | ], |
||
| 32 | 1 | 'auth' => [ $this->rpc->getUser(), $this->rpc->getPassword() ], |
|
| 33 | 1 | 'json' => $command |
|
| 34 | ]); |
||
| 37 |