| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 45 | 4 | public function copyRenderableFiles(array $files) |
|
| 46 | { |
||
| 47 | 4 | foreach ($files as $file) { |
|
| 48 | 4 | $absoluteDestination = $this->configuration->getOutputDirectory() |
|
| 49 | 4 | . DIRECTORY_SEPARATOR |
|
| 50 | 4 | . $file->getOutputPath(); |
|
| 51 | |||
| 52 | 4 | FileSystem::createDir(dirname($absoluteDestination)); |
|
| 53 | 4 | file_put_contents($absoluteDestination, $file->getContent()); |
|
| 54 | } |
||
| 55 | 4 | } |
|
| 56 | } |
||
| 57 |