Conditions | 1 |
Paths | 1 |
Total Lines | 7 |
Code Lines | 3 |
Lines | 0 |
Ratio | 0 % |
Tests | 4 |
CRAP Score | 1 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php declare(strict_types=1); |
||
43 | 2 | public function handle(ServerRequestInterface $request) : ResponseInterface |
|
44 | { |
||
45 | 2 | $entry = $this->container->get('entryManager')->findById($request->getAttribute('entryId')); |
|
46 | |||
47 | 1 | $this->container->get('entryManager')->delete($entry); |
|
48 | |||
49 | 1 | return $this->ok(); |
|
50 | } |
||
52 |