| Conditions | 2 |
| Paths | 2 |
| Total Lines | 10 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 10 | public function __invoke(ServerRequestInterface $req, array $params, Application $app) |
||
| 11 | { |
||
| 12 | $index_filename = $app->config('content_path') . '/index.md'; |
||
| 13 | |||
| 14 | if (file_exists($index_filename)) { |
||
| 15 | return $app->get('markdown.page', [$index_filename]); |
||
| 16 | } else { |
||
| 17 | return $app->get('response', [302])->withHeader('location', $app->config('base_url') . '/_index'); |
||
| 18 | } |
||
| 19 | } |
||
| 20 | |||
| 35 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.