InstallMpesaPackage   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A handle() 0 13 1
1
<?php
2
3
namespace konectdigital\Mpesa\Console;
4
5
use Illuminate\Console\Command;
6
7
class InstallMpesaPackage extends Command
8
{
9
    protected $signature = 'mpesa:install';
10
11
    protected $description = 'Install Mpesa Package';
12
13
    public function handle()
14
    {
15
        $this->info('Installing MpesaPackage...');
16
17
        $this->info('Publishing configuration...');
18
19
        $this->call('vendor:publish', [
20
            '--provider' => "Konectdigital\Mpesa\MpesaServiceProvider",
21
            '--tag' => 'config',
22
        ]);
23
24
        $this->info('Installed Mpesa');
25
    }
26
}
27