Completed
Push — master ( e1326f...7c8e33 )
by Abdelrahman
02:34 queued 01:22
created

PublishCommand::handle()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 5
rs 9.4285
cc 1
eloc 3
nc 1
nop 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Rinvex\Pages\Console\Commands;
6
7
use Illuminate\Console\Command;
8
9
class PublishCommand extends Command
10
{
11
    /**
12
     * The name and signature of the console command.
13
     *
14
     * @var string
15
     */
16
    protected $signature = 'rinvex:publish:pages {--force : Overwrite any existing files.}';
17
18
    /**
19
     * The console command description.
20
     *
21
     * @var string
22
     */
23
    protected $description = 'Publish Rinvex Pages Resources.';
24
25
    /**
26
     * Execute the console command.
27
     *
28
     * @return void
29
     */
30
    public function handle(): void
31
    {
32
        $this->warn($this->description);
33
        $this->call('vendor:publish', ['--tag' => 'rinvex-pages-config', '--force' => $this->option('force')]);
34
    }
35
}
36