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