| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 1 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 28 | 1 | protected function run( |
|
| 29 | ServerRequestInterface $request, |
||
| 30 | JsonEnabledResponseInterface $response, |
||
| 31 | array $args |
||
| 32 | ): ResponseInterface { |
||
| 33 | 1 | return $response->withJson([ |
|
| 34 | 1 | 'items' => array_map( |
|
| 35 | 1 | fn (PlaylistInterface $playlist): JsonSerializable => $this->resultItemFactory->createPlaylistItem($playlist), |
|
| 36 | 1 | $this->playlistRepository->findBy( |
|
| 37 | 1 | ['owner' => $request->getAttribute(SessionValidatorMiddleware::USER)], |
|
| 38 | 1 | ['name' => 'ASC'] |
|
| 39 | 1 | ) |
|
| 44 |