Conditions | 2 |
Paths | 2 |
Total Lines | 9 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
37 | 1 | public function copyStaticFiles(array $files) |
|
38 | { |
||
39 | 1 | foreach ($files as $file) { |
|
40 | 1 | $relativeDestination = substr($file->getPathname(), strlen($this->sourceDirectory)); |
|
41 | 1 | $absoluteDestination = $this->outputDirectory.$relativeDestination; |
|
42 | |||
43 | 1 | FileSystem::copy($file->getRealPath(), $absoluteDestination, true); |
|
44 | } |
||
45 | 1 | } |
|
46 | |||
59 |