| Total Complexity | 7 | 
| Total Lines | 38 | 
| Duplicated Lines | 0 % | 
| Changes | 1 | ||
| Bugs | 0 | Features | 1 | 
| 1 | <?php namespace GeneaLabs\LaravelImagery\Console\Commands;  | 
            ||
| 8 | class Publish extends Command  | 
            ||
| 9 | { | 
            ||
| 10 |     protected $signature = 'imagery:publish {--assets} {--config}'; | 
            ||
| 11 | protected $description = 'Publish various assets of the Laravel Imagery package.';  | 
            ||
| 12 | |||
| 13 | public function handle()  | 
            ||
| 14 |     { | 
            ||
| 15 |         if ($this->option('assets')) { | 
            ||
| 16 |             $this->delTree(public_path('genealabs-laravel-imagery')); | 
            ||
| 17 |             $this->call('vendor:publish', [ | 
            ||
| 18 | '--provider' => LaravelImageryService::class,  | 
            ||
| 19 | '--tag' => ['assets'],  | 
            ||
| 20 | '--force' => true,  | 
            ||
| 21 | ]);  | 
            ||
| 22 | }  | 
            ||
| 23 | |||
| 24 |         if ($this->option('config')) { | 
            ||
| 25 |             $this->call('vendor:publish', [ | 
            ||
| 26 | '--provider' => LaravelImageryService::class,  | 
            ||
| 27 | '--tag' => ['config'],  | 
            ||
| 28 | '--force' => true,  | 
            ||
| 29 | ]);  | 
            ||
| 30 | }  | 
            ||
| 31 | }  | 
            ||
| 32 | |||
| 33 | private function delTree($folder)  | 
            ||
| 46 | }  | 
            ||
| 47 | }  | 
            ||
| 48 |