| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 23 | 1 | public function getMoviesActors(Request $request, int $id, MovieActorRepository $repository) |
|
| 24 | { |
||
| 25 | 1 | $actors = $repository->findAllByMovie($id); |
|
| 26 | |||
| 27 | 1 | $offset = (int) $request->get('offset', 0); |
|
| 28 | 1 | $limit = $request->get('limit', null); |
|
| 29 | |||
| 30 | 1 | $collection = new PaginatedCollection($actors, $offset, $limit); |
|
| 31 | |||
| 32 | 1 | return $this->response($collection, 200, [], [ |
|
| 33 | 1 | 'groups' => ['list'], |
|
| 34 | ]); |
||
| 35 | } |
||
| 36 | } |
||
| 37 |