| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 12 | 2 | public function lastAction(Request $request, SubscriptionEventRepository $eventRepository, PaginatorInterface $paginator): Response |
|
| 13 | { |
||
| 14 | $eventsPagination = $paginator->paginate( |
||
| 15 | 2 | $eventRepository->createLastSubscriptionEventsQuery(), |
|
| 16 | $request->query->getInt('page', 1), |
||
| 17 | 2 | 20 |
|
| 18 | ); |
||
| 19 | 2 | ||
| 20 | 2 | return $this->render('SkobkinPointToolsBundle:Events:last.html.twig', [ |
|
| 21 | 2 | 'last_events' => $eventsPagination, |
|
| 22 | 2 | ]); |
|
| 23 | } |
||
| 24 | } |
||
| 25 |