| Conditions | 3 |
| Paths | 3 |
| Total Lines | 10 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 3 |
| Changes | 0 | ||
| 1 | <?php |
||
| 11 | 2 | public function run(Framework $framework, Filesystem $fs) |
|
| 12 | { |
||
| 13 | 2 | foreach ($framework->listFiles('resources/default') as $file) { |
|
| 14 | 2 | if (!$fs->exists($file)) { |
|
| 15 | 2 | $source = $framework->getPath("resources/default/$file"); |
|
| 16 | 2 | $destination = $fs->getPath($file); |
|
| 17 | 2 | file_put_contents($destination, file_get_contents($source)); |
|
| 18 | } |
||
| 19 | } |
||
| 20 | 2 | } |
|
| 21 | } |
||
| 22 |