Conditions | 1 |
Paths | 1 |
Total Lines | 14 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
15 | public function boot(Application $app) |
||
16 | { |
||
17 | assert( isset($app["twig.loader"])); |
||
18 | |||
19 | // Error Handling |
||
20 | $schema = $app["url_generator"]->generate("schema", array("id" => "error")); |
||
21 | |||
22 | $app["twig.loader"]->addLoader(new Twig_Loader_Filesystem(__DIR__ . "/templates")); |
||
23 | $app->before(new AddSchema($schema, "error")); |
||
24 | |||
25 | $app->error(function (\Exception $e, $code) use ($app) { |
||
26 | $app["json-schema.describedBy"] = $app["url_generator"]->generate("schema", array("id" => "error")); |
||
27 | }, self::ERROR_HANDLER_PRIORITY); |
||
28 | } |
||
29 | |||
40 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.