| Conditions | 1 |
| Paths | 1 |
| Total Lines | 15 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 35 | public function init(Service $service) |
||
| 36 | { |
||
| 37 | $service->post( |
||
| 38 | '/crl/fetch', |
||
| 39 | function (Request $request, UserInfoInterface $userInfo) { |
||
| 40 | |||
| 41 | //$this->logInfo('fetching CRL', array('api_user' => $userInfo->getUserId())); |
||
| 42 | |||
| 43 | $response = new JsonResponse(); |
||
| 44 | $response->setBody($this->crlFetcher->fetch()); |
||
| 45 | |||
| 46 | return $response; |
||
| 47 | } |
||
| 48 | ); |
||
| 49 | } |
||
| 50 | } |
||
| 51 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.