| Conditions | 1 |
| Paths | 1 |
| Total Lines | 7 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 1 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 29 | 1 | public function handle(Request $request): Response |
|
| 30 | { |
||
| 31 | 1 | $tag = $request->getAttribute('tag', ''); |
|
| 32 | 1 | $visits = $this->visitsTracker->visitsForTag($tag, VisitsParams::fromRawData($request->getQueryParams())); |
|
| 33 | |||
| 34 | 1 | return new JsonResponse([ |
|
| 35 | 1 | 'visits' => $this->serializePaginator($visits), |
|
| 36 | ]); |
||
| 39 |