| Conditions | 3 |
| Paths | 3 |
| Total Lines | 12 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 36 | private static function create(FilesystemInterface $filesystem, $class) |
||
| 37 | { |
||
| 38 | $container = new static(); |
||
| 39 | |||
| 40 | foreach ($filesystem->listContents() as $info) { |
||
| 41 | if ($info['type'] === 'dir') { |
||
| 42 | $container->{$info['filename']} = new $class($filesystem, $info['filename']); |
||
| 43 | } |
||
| 44 | } |
||
| 45 | |||
| 46 | return $container; |
||
| 47 | } |
||
| 48 | |||
| 76 |