| Conditions | 2 |
| Paths | 1 |
| Total Lines | 20 |
| Code Lines | 14 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 6 |
| Changes | 0 | ||
| 1 | <?php |
||
| 19 | public function register(DiInterface $container) |
||
| 20 | { |
||
| 21 | $config = $container->getShared('config'); |
||
| 22 | $app = envValue('GEWAER_APP_ID', 1); |
||
| 23 | |||
| 24 | $container->setShared( |
||
| 25 | 'modelsMetadata', |
||
| 26 | function () use ($config, $app) { |
||
| 27 | if (strtolower($config->app->env) != Flags::PRODUCTION) { |
||
| 28 | return new MemoryMetaDataAdapter(); |
||
| 29 | } |
||
| 30 | |||
| 31 | return new Redis( |
||
| 32 | [ |
||
| 33 | 'host' => envValue('REDIS_HOST', '127.0.0.1'), |
||
| 34 | 'port' => (int) envValue('REDIS_PORT', 6379), |
||
| 35 | 'prefix' => $app, |
||
| 36 | 'persistent' => 0, |
||
| 37 | "statsKey" => "_PHCM_MM", |
||
| 38 | 'lifetime' => 172800, |
||
| 39 | ] |
||
| 45 |
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