Conditions | 2 |
Paths | 2 |
Total Lines | 10 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
36 | public function check(Request $request) |
||
|
|||
37 | { |
||
38 | $health = $this->healthService->getHealth(config('health.checks', [])); |
||
39 | |||
40 | $statusCode = $health->isOk() ? Response::HTTP_OK : Response::HTTP_SERVICE_UNAVAILABLE; |
||
41 | |||
42 | $response = new Health($health); |
||
43 | $response->withoutWrapping(); |
||
44 | |||
45 | return $response->response()->setStatusCode($statusCode); |
||
46 | } |
||
48 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.