| Conditions | 2 |
| Paths | 2 |
| Total Lines | 10 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | 2 | public function __invoke(Application $app, Request $request) |
|
| 14 | { |
||
| 15 | 2 | $store = $this->getStore($app); |
|
| 16 | |||
| 17 | 2 | if ($store->delete($request->getRequestURI()) === false) { |
|
| 18 | 1 | throw new ServiceUnavailableHttpException(null, "Failed to delete resource"); |
|
| 19 | } |
||
| 20 | |||
| 21 | 1 | return Response::create('', Response::HTTP_NO_CONTENT); |
|
| 22 | } |
||
| 23 | } |
||
| 24 |