Test Failed
Push — master ( 83b4ef...37cc60 )
by Gianluca
19:45 queued 19:45
created

AdminUpdatePackageController   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 5
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A update() 0 3 1
1
<?php
2
3
4
namespace Mongi\Mongicommerce\Http\Controllers\admin;
5
6
7
use Illuminate\Support\Facades\Artisan;
8
9
class AdminUpdatePackageController
10
{
11
    public function update(){
12
        exec('composer update mongi/mongicommerce');
13
        Artisan::call('mongi:install');
14
    }
15
}
16