| Conditions | 4 |
| Paths | 3 |
| Total Lines | 23 |
| Code Lines | 14 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 15 |
| CRAP Score | 4 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 12 | 1 | public function process(ContainerBuilder $container): void |
|
| 13 | { |
||
| 14 | 1 | if ($container->hasParameter('dtc_queue.beanstalkd.host') && |
|
| 15 | 1 | $container->getParameter('dtc_queue.beanstalkd.host')) { |
|
| 16 | 1 | $definition = new Definition( |
|
| 17 | 1 | 'Pheanstalk\\Pheanstalk', |
|
| 18 | [ |
||
| 19 | 1 | new Definition( |
|
| 20 | 1 | 'Pheanstalk\\Connection', |
|
| 21 | [ |
||
| 22 | 1 | new Definition( |
|
| 23 | 1 | 'Pheanstalk\\SocketFactory', |
|
| 24 | 1 | [$container->getParameter('dtc_queue.beanstalkd.host'), $container->getParameter('dtc_queue.beanstalkd.port')] |
|
| 25 | ), |
||
| 26 | ] |
||
| 27 | ), |
||
| 28 | ] |
||
| 29 | ); |
||
| 30 | 1 | $container->setDefinition('dtc_queue.beanstalkd', $definition); |
|
| 31 | 1 | $definition = $container->getDefinition('dtc_queue.manager.job.beanstalkd'); |
|
| 32 | 1 | $definition->addMethodCall('setBeanstalkd', [new Reference('dtc_queue.beanstalkd')]); |
|
| 33 | 1 | if ($container->hasParameter('dtc_queue.beanstalkd.tube')) { |
|
| 34 | 1 | $definition->addMethodCall('setTube', [$container->getParameter('dtc_queue.beanstalkd.tube')]); |
|
| 35 | } |
||
| 39 |
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