| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Code Lines | 3 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 4 |
| CRAP Score | 1 |
| Changes | 3 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 49 | 1 | public function __invoke( |
|
| 50 | ResponseFactory $responseFactory, |
||
| 51 | UserRepository $userRepository, |
||
| 52 | LoggerInterface $logger |
||
| 53 | ): ResponseInterface { |
||
| 54 | 1 | $dataReader = $userRepository->findAllOrderByLogin(); |
|
| 55 | |||
| 56 | 1 | $logger->debug('Collected {count} users', ['count' => $dataReader->count()]); |
|
| 57 | |||
| 58 | 1 | return $responseFactory->create($dataReader); |
|
| 59 | } |
||
| 61 |