| Conditions | 3 |
| Paths | 3 |
| Total Lines | 11 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 12 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 39 | public static function createDirectoryStructure($structure, $basePath) |
||
| 40 | { |
||
| 41 | foreach($structure as $key => $value) { |
||
| 42 | if(is_numeric($key)) { |
||
| 43 | Directory::create("$basePath/$value"); |
||
| 44 | } else { |
||
| 45 | Directory::create("$basePath/$key"); |
||
| 46 | self::createDirectoryStructure($value, "$basePath/$key"); |
||
| 47 | } |
||
| 48 | } |
||
| 49 | } |
||
| 50 | |||
| 60 |