| Conditions | 2 |
| Paths | 2 |
| Total Lines | 9 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 32 | 2 | public function copyStaticFiles(array $files) |
|
| 33 | { |
||
| 34 | 2 | foreach ($files as $file) { |
|
| 35 | 1 | $relativeDestination = substr($file->getPathname(), strlen($this->configuration->getSourceDirectory())); |
|
| 36 | 1 | $absoluteDestination = $this->configuration->getOutputDirectory() . $relativeDestination; |
|
| 37 | |||
| 38 | 1 | FileSystem::copy($file->getRealPath(), $absoluteDestination, true); |
|
| 39 | } |
||
| 40 | 2 | } |
|
| 41 | |||
| 57 |