Publish   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
c 1
b 0
f 0
dl 0
loc 12
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A handle() 0 7 2
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