| Conditions | 3 |
| Paths | 3 |
| Total Lines | 17 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 38 | protected function copyToCompiledSite ($file, $prefix = "") |
||
| 39 | { |
||
| 40 | if (!$this->fs->exists($file)) { return; } |
||
| 41 | |||
| 42 | $filePath = $file->getRealPath(); |
||
| 43 | $pathToStrip = $this->fs->appendPath(getcwd(), $prefix); |
||
| 44 | $siteTargetPath = ltrim(str_replace($pathToStrip, "", $filePath), DIRECTORY_SEPARATOR); |
||
| 45 | |||
| 46 | try |
||
| 47 | { |
||
| 48 | $this->outputDirectory->copyFile($filePath, $siteTargetPath); |
||
| 49 | } |
||
| 50 | catch (\Exception $e) |
||
| 51 | { |
||
| 52 | $this->output->error($e->getMessage()); |
||
| 53 | } |
||
| 54 | } |
||
| 55 | |||
| 57 | } |