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
eloc 5
c 1
b 0
f 0
dl 0
loc 7
rs 10
cc 2
nc 2
nop 0
1
<?php namespace GeneaLabs\LaravelCaffeine\Console\Commands;
2
3
use GeneaLabs\LaravelCaffeine\Providers\Service;
4
use Illuminate\Console\Command;
5
use Illuminate\Contracts\Console\Kernel;
6
7
class Publish extends Command
8
{
9
    protected $signature = 'caffeine:publish {--config}';
10
    protected $description = 'Publish configuration file of the Caffeine for Laravel 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