Lines
100.00%
5 / 5
Methods
100.00%
1 / 1
Classes
100.00%
1 / 1
| Name | Lines | Methods | CRAP | ||||
|---|---|---|---|---|---|---|---|
| __invoke | 100.00% | 5 / 5 | 100.00% | 1 / 1 | 1 | ||
| 20 | final class Index extends BaseController | |
| 21 | { | |
| 22 | public function __invoke(UserRepository $userRepository, AgentStatRepository $agentStatRepository): Response | |
| 23 | { | |
| 24 | $agents = $userRepository->findVisibleAgents(); | |
| 25 | ||
| 26 | return $this->render('agent/index.html.twig', [ | |
| 27 | 'agents' => $agents, | |
| 28 | 'latest' => $agentStatRepository->findLatestByOwners($agents), | |
| 29 | ]); | |
| 30 | } | |
| 31 | } |