| Conditions | 3 |
| Paths | 2 |
| Total Lines | 14 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 48 | public function get($alias) { |
||
| 49 | if (!isset($this->clients[$alias]) || !$this->clients[$alias] instanceof Client) { |
||
| 50 | $info = $this->settings[$alias] ?? []; |
||
| 51 | $info += [ |
||
| 52 | 'uri' => 'mongodb://localhost:27017', |
||
| 53 | 'uriOptions' => [], |
||
| 54 | 'driverOptions' => [], |
||
| 55 | ]; |
||
| 56 | |||
| 57 | // Don't use ...$info: keys can be out of order. |
||
| 58 | $this->clients[$alias] = new Client($info['uri'], $info['uriOptions'], $info['driverOptions']); |
||
| 59 | } |
||
| 60 | |||
| 61 | return $this->clients[$alias]; |
||
| 62 | } |
||
| 65 |
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