PublishCommand::handle()   A
last analyzed

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
eloc 3
nc 1
nop 0
dl 0
loc 5
c 1
b 0
f 0
cc 1
rs 10
1
<?php
2
3
namespace Wingsline\Blog\Console;
4
5
use Illuminate\Console\Command;
6
7
class PublishCommand extends Command
8
{
9
    /**
10
     * The console command description.
11
     *
12
     * @var string
13
     */
14
    protected $description = 'Publish all of the blog\'s resources';
15
    /**
16
     * The name and signature of the console command.
17
     *
18
     * @var string
19
     */
20
    protected $signature = 'blog:publish';
21
22
    /**
23
     * Execute the console command.
24
     */
25
    public function handle()
26
    {
27
        $this->call('vendor:publish', [
28
            '--tag' => 'blog.assets',
29
            '--force' => true,
30
        ]);
31
    }
32
}
33