| Conditions | 3 |
| Paths | 3 |
| Total Lines | 14 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php namespace Wn\Generators\Commands; |
||
| 22 | public function handle() |
||
| 23 | { |
||
| 24 | $paths = ServiceProvider::pathsToPublish('Wn\Generators\CommandsServiceProvider'); |
||
| 25 | |||
| 26 | foreach($paths as $from => $to){ |
||
| 27 | $shortFrom = $this->shortPath($from); |
||
| 28 | |||
| 29 | if($this->copyFile($from, $to)) { |
||
| 30 | $this->info($shortFrom . ' has succesfully been copied to ' . $this->shortPath($to)); |
||
| 31 | }else{ |
||
| 32 | $this->warn($shortFrom . ' could not be copied. To try and force use the --f option.'); |
||
| 33 | } |
||
| 34 | } |
||
| 35 | } |
||
| 36 | |||
| 55 |