| Total Complexity | 8 | 
| Total Lines | 57 | 
| Duplicated Lines | 0 % | 
| Coverage | 100% | 
| Changes | 2 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php  | 
            ||
| 10 | class PackageFinder  | 
            ||
| 11 | { | 
            ||
| 12 | private $config;  | 
            ||
| 13 | private $fileGlob;  | 
            ||
| 14 | private $baseFolder;  | 
            ||
| 15 | private $fileList;  | 
            ||
| 16 | |||
| 17 | /**  | 
            ||
| 18 | * @param \SSpkS\Config $config Config object  | 
            ||
| 19 | * @throws \Exception if $folder is not a folder.  | 
            ||
| 20 | */  | 
            ||
| 21 | 9 | public function __construct(\SSpkS\Config $config)  | 
            |
| 22 |     { | 
            ||
| 23 | 9 | $this->config = $config;  | 
            |
| 24 | 9 | $folder = $this->config->paths['packages'];  | 
            |
| 25 | 9 | $glob = $this->config->packages['file_mask'];  | 
            |
| 26 | 9 |         if (!file_exists($folder) || !is_dir($folder)) { | 
            |
| 27 | 2 | throw new \Exception($folder . ' is not a folder!');  | 
            |
| 28 | }  | 
            ||
| 29 | 7 |         if (substr($folder, -1) != '/') { | 
            |
| 30 | 2 | $folder .= '/';  | 
            |
| 31 | }  | 
            ||
| 32 | 7 | $this->baseFolder = $folder;  | 
            |
| 33 | 7 | $this->fileGlob = $glob;  | 
            |
| 34 | 7 | $this->searchPackageFiles();  | 
            |
| 35 | 7 | }  | 
            |
| 36 | |||
| 37 | /**  | 
            ||
| 38 | * Searches the currently set folder with the set glob for package files.  | 
            ||
| 39 | */  | 
            ||
| 40 | 7 | private function searchPackageFiles()  | 
            |
| 43 | 7 | }  | 
            |
| 44 | |||
| 45 | /**  | 
            ||
| 46 | * Returns all found package files.  | 
            ||
| 47 | *  | 
            ||
| 48 | * @return array List of package files.  | 
            ||
| 49 | */  | 
            ||
| 50 | 1 | public function getAllPackageFiles()  | 
            |
| 53 | }  | 
            ||
| 54 | |||
| 55 | /**  | 
            ||
| 56 | * Returns all found packages as objects.  | 
            ||
| 57 | *  | 
            ||
| 58 | * @return \SSpkS\Package\Package[] List of packages as objects.  | 
            ||
| 59 | */  | 
            ||
| 60 | 6 | public function getAllPackages()  | 
            |
| 67 | }  | 
            ||
| 68 | }  | 
            ||
| 69 | 
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