PublishCommand   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A handle() 0 5 1
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