| Total Complexity | 3 |
| Total Lines | 21 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 2 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 18 | class CopyHandler extends BaseHandler |
||
| 19 | { |
||
| 20 | /** |
||
| 21 | * {@inheritdoc} |
||
| 22 | */ |
||
| 23 | public function renderPath($path, $data) |
||
| 24 | { |
||
| 25 | try { |
||
| 26 | copy($data->getCopy(), $path); |
||
| 27 | } catch (\Exception $e) { |
||
| 28 | throw new \RuntimeException("Failed to copy file \"{$data->getCopy()}\" to \"$path\": {$e->getMessage()}"); |
||
| 29 | } |
||
| 30 | Yii::warning('Copied file: ' . $path); |
||
| 31 | } |
||
| 32 | |||
| 33 | /** |
||
| 34 | * {@inheritdoc} |
||
| 35 | */ |
||
| 36 | public function parsePath($path, $minimal = null) |
||
| 39 | } |
||
| 40 | } |
||
| 41 |