| Total Complexity | 6 |
| Total Lines | 42 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 17 | class ConnectionResolver implements ConnectionResolverInterface |
||
| 18 | { |
||
| 19 | protected string $defaultConnection = 'default'; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * {@inheritDoc} |
||
| 23 | */ |
||
| 24 | public function connection(?string $name = null): ConnectionInterface |
||
| 25 | { |
||
| 26 | return $this->connect($name ?: $this->defaultConnection); |
||
| 27 | } |
||
| 28 | |||
| 29 | /** |
||
| 30 | * {@inheritDoc} |
||
| 31 | */ |
||
| 32 | public function connect($group = null, bool $shared = true): ConnectionInterface |
||
| 33 | { |
||
| 34 | return Database::connect($group, $shared); |
||
| 35 | } |
||
| 36 | |||
| 37 | /** |
||
| 38 | * {@inheritDoc} |
||
| 39 | */ |
||
| 40 | public function connectionInfo(array|string|null $group = null): array |
||
| 41 | { |
||
| 42 | return Database::connectionInfo($group); |
||
| 43 | } |
||
| 44 | |||
| 45 | /** |
||
| 46 | * {@inheritDoc} |
||
| 47 | */ |
||
| 48 | public function getDefaultConnection(): string |
||
| 51 | } |
||
| 52 | |||
| 53 | /** |
||
| 54 | * {@inheritDoc} |
||
| 55 | */ |
||
| 56 | public function setDefaultConnection(string $name): void |
||
| 59 | } |
||
| 60 | } |
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