Completed
Push — master ( 7328ed...c4af57 )
by ARCANEDEV
04:44
created

PublishCommand   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 41
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 2
Bugs 0 Features 0
Metric Value
wmc 1
c 2
b 0
f 0
lcom 0
cbo 1
dl 0
loc 41
ccs 9
cts 9
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A handle() 0 11 1
1
<?php namespace Arcanesoft\Auth\Console;
2
3
use Arcanedev\LaravelAuth\LaravelAuthServiceProvider;
4
use Arcanesoft\Auth\AuthServiceProvider;
5
6
/**
7
 * Class     PublishCommand
8
 *
9
 * @package  Arcanesoft\Auth\Console
10
 * @author   ARCANEDEV <[email protected]>
11
 */
12
class PublishCommand extends Command
13
{
14
    /* -----------------------------------------------------------------
15
     |  Properties
16
     | -----------------------------------------------------------------
17
     */
18
19
    /**
20
     * The name and signature of the console command.
21
     *
22
     * @var string
23
     */
24
    protected $signature   = 'auth:publish';
25
26
    /**
27
     * The console command description.
28
     *
29
     * @var string
30
     */
31
    protected $description = 'Publish auth config, migrations, assets and other stuff.';
32
33
    /* -----------------------------------------------------------------
34
     |  Main Methods
35
     | -----------------------------------------------------------------
36
     */
37
38
    /**
39
     * Execute the console command.
40
     */
41 2
    public function handle()
42
    {
43 2
        $this->call('vendor:publish', [
44 2
            '--provider' => LaravelAuthServiceProvider::class,
45 1
            '--tag'      => ['migrations', 'factories'],
46 1
        ]);
47
48 2
        $this->call('vendor:publish', [
49 2
            '--provider' => AuthServiceProvider::class,
50 1
        ]);
51 2
    }
52
}
53