| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 26 | 2 | public function getActorsMovies(Request $request, int $id, MovieRepository $repository) |
|
| 27 | { |
||
| 28 | 2 | [$movies, $ids, $count] = $repository->findAllByActor($id, $this->getUser()); |
|
| 29 | |||
| 30 | 2 | $offset = (int) $request->get('offset', 0); |
|
| 31 | 2 | $limit = $request->get('limit', null); |
|
| 32 | |||
| 33 | 2 | $collection = new CustomPaginatedCollection($movies, $ids, $count, $offset, $limit); |
|
| 34 | |||
| 35 | 2 | return $this->items($collection, MovieTransformer::list()); |
|
| 36 | } |
||
| 37 | } |
||
| 38 |
This check marks access to variables or properties that have not been declared yet. While PHP has no explicit notion of declaring a variable, accessing it before a value is assigned to it is most likely a bug.