PublishStubs::handle()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
cc 1
eloc 4
nc 1
nop 0
dl 0
loc 8
rs 10
c 1
b 0
f 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