| Conditions | 3 |
| Paths | 3 |
| Total Lines | 8 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 12 |
| Changes | 2 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 30 | private function validateAdapter(string $alias, array $config) |
||
| 31 | { |
||
| 32 | $adapter = $config['adapter']['__class'] ?? false; |
||
| 33 | if (!$adapter) { |
||
| 34 | throw new \RuntimeException("Adapter is not defined in the '$alias' storage config."); |
||
| 35 | } |
||
| 36 | if (!is_subclass_of($adapter, FilesystemAdapter::class)) { |
||
| 37 | throw new \RuntimeException("Adapter must implements FilesystemAdapterInterface."); |
||
| 38 | } |
||
| 41 |
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