| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 1 |
| Changes | 4 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 17 | public function register(DiInterface $container) |
||
| 18 | 2 | { |
|
| 19 | 2 | $container->setShared( |
|
| 20 | 2 | 'cache', |
|
| 21 | 1 | function () { |
|
| 22 | 1 | //Connect to redis |
|
| 23 | $redis = new Redis(); |
||
| 24 | 1 | $redis->connect(envValue('REDIS_HOST', '127.0.0.1'), (int) envValue('REDIS_PORT', 6379)); |
|
| 25 | $redis->setOption(Redis::OPT_SERIALIZER, Redis::SERIALIZER_PHP); |
||
| 26 | return $redis; |
||
| 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