PublishStubs   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
eloc 7
dl 0
loc 14
rs 10
c 1
b 0
f 1
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A handle() 0 8 1
1
<?php
2
3
namespace EasyPanel\Commands\Actions;
4
5
use EasyPanel\EasyPanelServiceProvider;
6
use Illuminate\Console\Command;
7
use Illuminate\Support\Facades\Artisan;
8
9
class PublishStubs extends Command
10
{
11
12
    protected $signature = 'panel:publish';
13
    protected $description = 'Publish stubs of package';
14
15
    public function handle()
16
    {
17
        Artisan::call('vendor:publish', [
18
            '--provider' => EasyPanelServiceProvider::class,
19
            '--tag' => 'easy-panel-stubs'
20
        ]);
21
22
        $this->info("Stubs was published successfully");
23
    }
24
}
25