| Conditions | 4 |
| Paths | 5 |
| Total Lines | 13 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php namespace Modules\Core\Foundation\Theme; |
||
| 52 | public function publish() |
||
| 53 | { |
||
| 54 | if (!$this->finder->isDirectory($sourcePath = $this->getSourcePath())) { |
||
| 55 | $message = "Source path does not exist : {$sourcePath}"; |
||
| 56 | throw new \InvalidArgumentException($message); |
||
| 57 | } |
||
| 58 | if (!$this->finder->isDirectory($destinationPath = $this->getDestinationPath())) { |
||
| 59 | $this->finder->makeDirectory($destinationPath, 0775, true); |
||
| 60 | } |
||
| 61 | if ($this->finder->copyDirectory($sourcePath, $destinationPath)) { |
||
| 62 | return true; |
||
| 63 | } |
||
| 64 | } |
||
| 65 | |||
| 84 |