Publish::handle()   A
last analyzed

Complexity

Conditions 2
Paths 2

Size

Total Lines 7
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

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