InstallCommand   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Importance

Changes 0
Metric Value
wmc 1
lcom 1
cbo 2
dl 0
loc 17
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A handle() 0 8 1
1
<?php
2
3
namespace Spatie\WebTinker\Console;
4
5
use Illuminate\Console\Command;
6
use Illuminate\Console\DetectsApplicationNamespace;
7
8
class InstallCommand extends Command
9
{
10
    use DetectsApplicationNamespace;
0 ignored issues
show
Deprecated Code introduced by freek
The trait Illuminate\Console\DetectsApplicationNamespace has been deprecated with message: Usage of this trait is deprecated and it will be removed in Laravel 7.0.

This class, trait or interface has been deprecated. The supplier of the file has supplied an explanatory message.

The explanatory message should give you some clue as to whether and when the type will be removed from the class and what other constant to use instead.

Loading history...
11
12
    protected $signature = 'web-tinker:install';
13
14
    protected $description = 'Install all of the Web Tinker resources';
15
16
    public function handle()
17
    {
18
        $this->comment('Publishing Web Tinker Assets...');
19
20
        $this->callSilent('vendor:publish', ['--tag' => 'web-tinker-assets']);
21
22
        $this->info('Web tinker installed successfully.');
23
    }
24
}
25