| Total Complexity | 10 |
| Total Lines | 67 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 9 | class FileManager |
||
| 10 | { |
||
| 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 |
||
| 62 | }); |
||
| 63 | } |
||
| 64 | |||
| 65 | /** |
||
| 66 | * @return void |
||
| 67 | */ |
||
| 68 | private function removeOldFilesByIntervalDays(): void |
||
| 76 | } |
||
| 77 | } |
||
| 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