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
eloc 8
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\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