| Conditions | 1 |
| Paths | 1 |
| Total Lines | 17 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 9 |
| CRAP Score | 1 |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 32 | 8 | public function send(string $request): string |
|
| 33 | { |
||
| 34 | 6 | $this->logger->debug('Sending JSON RPC request.', ['body' => $request]); |
|
| 35 | |||
| 36 | 6 | $sentAt = microtime(true); |
|
| 37 | |||
| 38 | 6 | $response = $this->decorated->send($request); |
|
| 39 | |||
| 40 | 6 | $this->logger->debug( |
|
| 41 | 'JSON RPC response received.', |
||
| 42 | 5 | [ |
|
| 43 | 5 | 'body' => $response, |
|
| 44 | 'duration' => microtime(true) - $sentAt, |
||
| 45 | 5 | ] |
|
| 46 | 5 | ); |
|
| 47 | |||
| 48 | return $response; |
||
| 49 | } |
||
| 51 |