Conditions | 2 |
Paths | 2 |
Total Lines | 11 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 6 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
44 | public static function fileMappingDriversRequireConfiguredDirectoryPath( |
||
45 | ?string $path = null |
||
46 | ) { |
||
47 | if ($path !== null) { |
||
48 | $path = '[' . $path . ']'; |
||
49 | } |
||
50 | |||
51 | return new self(sprintf( |
||
52 | 'File mapping drivers must have a valid directory path, ' . |
||
53 | 'however the given path %s seems to be incorrect!', |
||
54 | $path |
||
55 | )); |
||
90 |