| Conditions | 2 |
| Paths | 2 |
| Total Lines | 19 |
| Code Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 12 | public function getDaily(ServerRequestInterface $request, ResponseInterface $response, $args) |
||
|
|
|||
| 13 | { |
||
| 14 | $this->logger->info("Fetch event GET '/jobs/daily'"); |
||
| 15 | $site = new Site(); |
||
| 16 | $actualToken = $site->getSettings()->getToken(); |
||
| 17 | if ($args['token'] !== $actualToken) { |
||
| 18 | return $response; |
||
| 19 | } |
||
| 20 | |||
| 21 | $client = new Client(); |
||
| 22 | $url = $site->getUrl()['base'].$this->router->pathFor('home').'old/cr_daily.php'; |
||
| 23 | $response = $client->get($url, [ |
||
| 24 | 'query' => [ |
||
| 25 | 'token' => $args['token'], |
||
| 26 | ], |
||
| 27 | ]); |
||
| 28 | |||
| 29 | return $response; |
||
| 30 | } |
||
| 31 | } |
||
| 32 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.