| Conditions | 2 |
| Paths | 3 |
| Total Lines | 15 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 2 |
| Changes | 4 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 32 | 2 | public function request(\Marek\Toggable\API\Http\Request\RequestInterface $request) |
|
| 33 | { |
||
| 34 | try { |
||
| 35 | |||
| 36 | 2 | $this->client->prepare($request); |
|
| 37 | 2 | $response = $this->client->getResponse(); |
|
| 38 | |||
| 39 | 2 | } catch (BaseException $e) { |
|
| 40 | |||
| 41 | 1 | throw new NotFoundException(get_class($request)); |
|
| 42 | |||
| 43 | } |
||
| 44 | |||
| 45 | 1 | return $response; |
|
| 46 | } |
||
| 47 | } |
||
| 48 |