| Total Complexity | 4 |
| Total Lines | 21 |
| Duplicated Lines | 0 % |
| Coverage | 87.5% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 10 | final class FileAssert extends Assert |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * @throws RuntimeException |
||
| 14 | */ |
||
| 15 | 2 | public static function assertFile(string $filePath): void |
|
| 16 | { |
||
| 17 | 2 | if (!is_file($filePath)) { |
|
| 18 | 1 | throw new RuntimeException(sprintf('The file "%s" is not found.', $filePath)); |
|
| 19 | } |
||
| 20 | 1 | } |
|
| 21 | |||
| 22 | /** |
||
| 23 | * @throws RuntimeException |
||
| 24 | */ |
||
| 25 | 1 | public static function assertCsvFile(string $filePath): void |
|
| 31 | } |
||
| 32 | 1 | } |
|
| 34 |
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