Conditions | 4 |
Paths | 8 |
Total Lines | 10 |
Code Lines | 13 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
17 | public function run(Framework $framework, Filesystem $fs) |
||
18 | { |
||
19 | foreach ($framework->listFiles('resources/default') as $file) { |
||
20 | if (!$fs->exists($file)) { |
||
21 | $source = $framework->getPath("resources/default/$file"); |
||
22 | $destination = $fs->getPath($file); |
||
23 | file_put_contents($destination, file_get_contents($source)); |
||
24 | } |
||
25 | } |
||
26 | } |
||
27 | } |
||
28 |