| Conditions | 2 |
| Paths | 2 |
| Total Lines | 8 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 50 | 1 | public function copyRenderableFiles(array $files) |
|
| 51 | { |
||
| 52 | 1 | foreach ($files as $file) { |
|
| 53 | 1 | $absoluteDestination = $this->outputDirectory.DIRECTORY_SEPARATOR.$file->getOutputPath(); |
|
| 54 | 1 | FileSystem::createDir(dirname($absoluteDestination)); |
|
| 55 | 1 | file_put_contents($absoluteDestination, $file->getContent()); |
|
| 56 | } |
||
| 57 | 1 | } |
|
| 58 | } |
||
| 59 |