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