| Conditions | 2 |
| Paths | 2 |
| Total Lines | 10 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 2.0185 |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 40 | 1 | public function configure(Configuration $config, SerializerInterface $serializer): ConnectionDriverInterface |
|
| 41 | { |
||
| 42 | 1 | if (!class_exists(PrimeConnection::class)) { |
|
| 43 | throw new \LogicException('Could not create the prime connection bdf-queue. Try to composer require "b2pweb/bdf-queue-prime-adapter" to add this class.'); |
||
| 44 | } |
||
| 45 | |||
| 46 | 1 | $connection = new PrimeConnection($config->getConnection(), $serializer, $this->container->get('prime')->connections()); |
|
| 47 | 1 | $connection->setConfig($config->toArray()); |
|
| 48 | |||
| 49 | 1 | return $connection; |
|
| 50 | } |
||
| 52 |
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