| Total Complexity | 7 | 
| Total Lines | 50 | 
| Duplicated Lines | 0 % | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 11 | /**  | 
            ||
| 12 | * @var array  | 
            ||
| 13 | */  | 
            ||
| 14 | private $params;  | 
            ||
| 15 | /**  | 
            ||
| 16 | * @var array  | 
            ||
| 17 | */  | 
            ||
| 18 | private $files = [];  | 
            ||
| 19 | /**  | 
            ||
| 20 | * @var self  | 
            ||
| 21 | */  | 
            ||
| 22 | private static $_instance;  | 
            ||
| 23 | |||
| 24 | /**  | 
            ||
| 25 | * @return FileManager|null  | 
            ||
| 26 | */  | 
            ||
| 27 | public static function getInstance(): ?self  | 
            ||
| 28 |     { | 
            ||
| 29 | |||
| 30 |         if (self::$_instance === null) { | 
            ||
| 31 | self::$_instance = new self;  | 
            ||
| 32 | }  | 
            ||
| 33 | return self::$_instance;  | 
            ||
| 34 | }  | 
            ||
| 35 | |||
| 36 | /**  | 
            ||
| 37 | * FileManager constructor.  | 
            ||
| 38 | */  | 
            ||
| 39 | public function __construct()  | 
            ||
| 48 | }  | 
            ||
| 49 | |||
| 50 | /**  | 
            ||
| 51 | * @return void  | 
            ||
| 52 | */  | 
            ||
| 53 | private function _getFiles(): void  | 
            ||
| 54 |     { | 
            ||
| 55 | $files = scandir($this->params['files_path'], SCANDIR_SORT_ASCENDING);  | 
            ||
| 56 |         $this->files = array_filter($files, function ($k) { | 
            ||
| 57 | $return = [];  | 
            ||
| 58 |             if ($k !== '..' && $k !== '.') { | 
            ||
| 59 | $return[] = $k;  | 
            ||
| 60 | }  | 
            ||
| 61 | return $return;  | 
            ||
| 80 | 
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