| Conditions | 2 |
| Paths | 1 |
| Total Lines | 12 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 4 |
| CRAP Score | 2.5 |
| Changes | 0 | ||
| 1 | <?php |
||
| 15 | 1 | public function register(DiInterface $container) |
|
| 16 | { |
||
| 17 | 1 | $config = $container->getShared('config'); |
|
| 18 | |||
| 19 | 1 | $container->setShared( |
|
| 20 | 1 | 'app', |
|
| 21 | function () use ($config) { |
||
| 22 | $app = Apps::findFirstByKey($config->app->id); |
||
| 23 | if (!$app) { |
||
| 24 | throw new ServerErrorHttpException('No App configure with this key ' . $config->app->id); |
||
| 25 | } |
||
| 26 | return $app; |
||
| 27 | 1 | } |
|
| 31 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths