Conditions | 3 |
Paths | 3 |
Total Lines | 11 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 12 |
Changes | 0 |
1 | <?php |
||
22 | protected function createDirectory($directory) |
||
23 | { |
||
24 | if (!is_dir($directory)) { |
||
25 | if (!@mkdir($directory, 755, true)) { |
||
26 | throw new \RuntimeException( |
||
27 | 'The generator "' . end(explode('\\', get_called_class())) . '" cannot create directory "' |
||
|
|||
28 | . $directory . '", error message : ' . error_get_last()['message'] |
||
29 | ); |
||
30 | } |
||
31 | } |
||
32 | } |
||
33 | } |
||
34 |