| Total Complexity | 7 |
| Total Lines | 43 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 8 | trait MongoConnection |
||
| 9 | { |
||
| 10 | /* @var object */ |
||
| 11 | protected static $connection; |
||
| 12 | /* @var string */ |
||
| 13 | protected $admin = 'admin'; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * Create new Mongo Client. |
||
| 17 | * |
||
| 18 | * @return void |
||
| 19 | */ |
||
| 20 | public function __construct() |
||
| 37 | } |
||
| 38 | |||
| 39 | /** |
||
| 40 | * Get mongo client instance. |
||
| 41 | * |
||
| 42 | * @return \MongoDB\Client |
||
| 43 | */ |
||
| 44 | public function getMongoClient() |
||
| 53 |
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