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