Total Complexity | 4 |
Total Lines | 49 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
13 | class ClientFactory { |
||
14 | |||
15 | /** |
||
16 | * The 'mongodb' client settings. |
||
17 | * |
||
18 | * @var string[][] |
||
19 | */ |
||
20 | protected $settings; |
||
21 | |||
22 | /** |
||
23 | * A hash of connections per alias. |
||
24 | * |
||
25 | * @var \MongoDB\Client[] |
||
26 | */ |
||
27 | protected $clients; |
||
28 | |||
29 | /** |
||
30 | * Constructor. |
||
31 | * |
||
32 | * @param \Drupal\Core\Site\Settings $settings |
||
33 | * The system settings. |
||
34 | */ |
||
35 | public function __construct(Settings $settings) { |
||
36 | $this->settings = $settings->get(MongoDb::MODULE)['clients']; |
||
37 | } |
||
38 | |||
39 | /** |
||
40 | * Return a Client instance for a given alias. |
||
41 | * |
||
42 | * @param string $alias |
||
43 | * The alias defined in settings for a Client. |
||
44 | * |
||
45 | * @return \MongoDB\Client |
||
46 | * A Client instance for the chosen server. |
||
47 | */ |
||
48 | public function get($alias) { |
||
62 | } |
||
63 | |||
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