| Conditions | 3 |
| Paths | 2 |
| Total Lines | 9 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 12 |
| Changes | 0 | ||
| 1 | <?php |
||
| 44 | protected function prepareConnection(array $connection): array |
||
| 45 | { |
||
| 46 | // if connection option contain alias in path |
||
| 47 | if (isset($connection['connection']) && preg_match('/^(?<proto>\w+:)?@/', $connection['connection'], $m)) { |
||
| 48 | $proto = $m['proto']; |
||
| 49 | $path = $this->getAlias(substr($connection['connection'], strlen($proto))); |
||
| 50 | $connection['connection'] = $proto . $path; |
||
| 51 | } |
||
| 52 | return $connection; |
||
| 53 | } |
||
| 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