| Conditions | 2 |
| Paths | 2 |
| Total Lines | 21 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 14 | public function handle() |
||
| 15 | { |
||
| 16 | $this->line(''); |
||
| 17 | $target = $this->argument('target'); |
||
| 18 | $options = [ |
||
| 19 | 'compress' => $this->option('compress'), |
||
| 20 | 'json' => $this->option('json'), |
||
| 21 | 'no-lib' => $this->option('no-lib'), |
||
| 22 | 'source' => $this->option('source'), |
||
| 23 | ]; |
||
| 24 | |||
| 25 | if ($this->generator->generate($target, $options)) { |
||
| 26 | $this->info("Created: {$target}"); |
||
| 27 | $this->line(''); |
||
| 28 | |||
| 29 | return; |
||
| 30 | } |
||
| 31 | |||
| 32 | $this->error("Could not create: {$target}"); |
||
| 33 | $this->line(''); |
||
| 34 | } |
||
| 35 | } |
||
| 36 |