Publish   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A handle() 0 7 2
1
<?php namespace GeneaLabs\LaravelMixpanel\Console\Commands;
2
3
use Illuminate\Console\Command;
4
use Illuminate\Contracts\Console\Kernel;
5
use GeneaLabs\LaravelMixpanel\Providers\Service;
6
7
class Publish extends Command
8
{
9
    protected $signature = 'mixpanel:publish {--assets}';
10
    protected $description = 'Publish various assets of the mixpanel package.';
11
12
    public function handle()
13
    {
14
        if ($this->option('assets')) {
15
            $this->call('vendor:publish', [
16
                '--provider' => Service::class,
17
                '--tag' => ['assets'],
18
                '--force' => true,
19
            ]);
20
        }
21
    }
22
}
23