Conditions | 2 |
Paths | 1 |
Total Lines | 4 |
Code Lines | 2 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php declare(strict_types=1); |
||
28 | #[Route(path: '/api/metrics/needs-approval', name: 'api.metrics.request', methods: [Request::METHOD_GET])] |
||
29 | public function needsApprovalRequest(): JsonResponse |
||
30 | { |
||
31 | return new JsonResponse($this->approvalDetector->needsApprovalRequest() && !$this->isApprovalAlreadyRequested()); |
||
32 | } |
||
39 |