InstallChpter   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A handle() 0 11 1
1
<?php
2
3
namespace KiplingKelvin\ChpterLaravelSdk\Console;
4
5
use Illuminate\Console\Command;
0 ignored issues
show
Bug introduced by
The type Illuminate\Console\Command was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
6
7
class InstallChpter extends Command
8
{
9
    protected $signature = "chpter:install";
10
11
    protected $description = "Install Chpter package";
12
13
    public function handle()
14
    {
15
        $this->info('Installing Chpter for Laravel ...');
16
        $this->info('Publishing Configuration...');
17
18
        $this->call('vendor:publish', [
19
      '--provider' => "KiplingKelvin\ChpterLaravelSdk\ChpterServiceProvider",
20
      '--tag' => "chpter-config"
21
    ]);
22
23
        $this->info('Installed Chpter for Laravel');
24
    }
25
}
26