| Conditions | 3 |
| Paths | 3 |
| Total Lines | 10 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 21 | public function handle(string $src, string $dist) |
||
| 22 | { |
||
| 23 | if ($this->filesystem->exists($dist)) { |
||
| 24 | throw new \Exception('Such module already exists'); |
||
| 25 | } |
||
| 26 | |||
| 27 | try { |
||
| 28 | $this->filesystem->mirror($src, $dist); |
||
| 29 | } catch (IOExceptionInterface $exception) { |
||
| 30 | throw new \Exception($exception->getMessage()); |
||
| 31 | } |
||
| 34 |