| Conditions | 1 |
| Paths | 1 |
| Total Lines | 9 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 1 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 30 | 2 | public function handle(ServerRequestInterface $request): ResponseInterface |
|
| 31 | { |
||
| 32 | 2 | $regularDomains = $this->domainService->listDomainsWithout($this->defaultDomain); |
|
| 33 | |||
| 34 | 2 | return new JsonResponse([ |
|
| 35 | 'domains' => [ |
||
| 36 | 'data' => [ |
||
| 37 | 2 | $this->mapDomain($this->defaultDomain, true), |
|
| 38 | 2 | ...map($regularDomains, fn (Domain $domain) => $this->mapDomain($domain->getAuthority())), |
|
| 39 | ], |
||
| 52 |