Passed
Push — master ( f4581e...bd39dd )
by Mike
02:39
created

Publish::delTree()   A

Complexity

Conditions 4
Paths 4

Size

Total Lines 13
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 4
eloc 6
nc 4
nop 1
dl 0
loc 13
rs 9.2
c 0
b 0
f 0
1
<?php namespace GeneaLabs\LaravelMessenger\Console\Commands;
2
3
use Illuminate\Console\Command;
4
use Illuminate\Contracts\Console\Kernel;
5
use GeneaLabs\LaravelMessenger\Providers\Service;
6
7
class Publish extends Command
8
{
9
    protected $signature = 'messenger:publish {--config}';
10
    protected $description = 'Publish configuration file of the Laravel Messenger package.';
11
12
    public function handle()
13
    {
14
        if ($this->option('config')) {
15
            $this->call('vendor:publish', [
16
                '--provider' => Service::class,
17
                '--tag' => ['config'],
18
                '--force' => true,
19
            ]);
20
        }
21
    }
22
}
23