| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 2.0185 |
| Changes | 0 | ||
| 1 | <?php |
||
| 25 | 4 | public function request($method, $uri = null, array $options = []) |
|
| 26 | { |
||
| 27 | 4 | if ($this->clientAdapter instanceof ClientAdapterInterface) { |
|
| 28 | 4 | $response = $this->clientAdapter->request($method, $uri, $options); |
|
| 29 | |||
| 30 | 4 | $this->triggerEvent(new PostClientRequestEvent($response)); |
|
| 31 | |||
| 32 | 4 | return $response; |
|
| 33 | } |
||
| 34 | throw new \LogicException(sprintf('no client adapter set for "%s"', __CLASS__), 1460021696); |
||
| 35 | } |
||
| 36 | |||
| 45 |