Test Failed
Push — master ( f25b35...18620f )
by Gianluca
39:47 queued 14s
created

UpdatePackage   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 29
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A handle() 0 23 1
1
<?php
2
3
4
namespace Mongi\Mongicommerce\Console;
5
6
use Illuminate\Console\Command;
7
use Illuminate\Support\Facades\Artisan;
8
use Mongi\Mongicommerce\Seedeers\SettingsSeeder;
9
use Mongi\Mongicommerce\Seedeers\StasusesOrderSeeder;
10
use Mongi\Mongicommerce\Seedeers\TypesPaymentSeeder;
11
12
class UpdatePackage extends Command
13
{
14
    protected $signature = 'mongicommerce:update';
15
16
    protected $description = 'Update mongicommerce';
17
18
    public function handle()
19
    {
20
        $this->alert('Updating Mongicommerce...');
21
22
        $this->info('Updating configuration...');
23
24
        $this->call('vendor:publish', [
25
            '--provider' => "Mongi\Mongicommerce\MongicommerceServiceProvider",
26
            '--tag' => "config"
27
        ]);
28
        $this->info('Updating Admin Template');
29
30
        $this->call('vendor:publish', [
31
            '--provider' => "Mongi\Mongicommerce\MongicommerceServiceProvider",
32
            '--tag' => "assets"
33
        ]);
34
35
        $this->call('vendor:publish', [
36
            '--provider' => "Mongi\Mongicommerce\MongicommerceServiceProvider",
37
            '--tag' => "views"
38
        ]);
39
40
        $this->alert('Update successfully');
41
    }
42
}
43