Conditions | 2 |
Paths | 2 |
Total Lines | 17 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 6 |
Changes | 0 |
1 | <?php |
||
27 | public function catchAll(...$args) |
||
|
|||
28 | { |
||
29 | $content = $this->di->get("content"); |
||
30 | $page = $this->di->get("page"); |
||
31 | |||
32 | $fileContent = $content->contentForRoute(); |
||
33 | foreach ($fileContent->views as $view) { |
||
34 | $page->add($view); |
||
35 | } |
||
36 | |||
37 | $page->add("anax/v2/article/default", [ |
||
38 | "content" => $fileContent->text, |
||
39 | "frontmatter" => $fileContent->frontmatter, |
||
40 | ]); |
||
41 | |||
42 | return $page->render($fileContent->frontmatter); |
||
43 | } |
||
44 | } |
||
45 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.