GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Completed
Push — master ( f91a4c...f91a4c )
by Dave
39:26 queued 34:22
created

UpdateCommand   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 41
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 2
Bugs 0 Features 0
Metric Value
wmc 3
lcom 1
cbo 1
dl 0
loc 41
ccs 0
cts 6
cp 0
rs 10
c 2
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A fire() 0 4 1
A handle() 0 4 1
A runInstaller() 0 7 1
1
<?php
2
3
namespace SleepingOwl\Admin\Console\Commands;
4
5
use Illuminate\Filesystem\Filesystem;
6
use SleepingOwl\Admin\Console\Installation;
7
8
class UpdateCommand extends Installation\Command
9
{
10
    /**
11
     * The name and signature of the console command.
12
     *
13
     * @var string
14
     */
15
    protected $signature = 'sleepingowl:update';
16
17
    /**
18
     * The console command description.
19
     * @var string
20
     */
21
    protected $description = 'Update the SleepingOwl Admin package';
22
23
    /**
24
     * Execute the console command.
25
     *
26
     * @param Filesystem $files
27
     */
28
    public function fire(Filesystem $files)
29
    {
30
        $this->runInstaller();
31
    }
32
33
    /**
34
     * @param Filesystem $files
35
     */
36
    public function handle(Filesystem $files)
37
    {
38
        $this->runInstaller();
39
    }
40
41
    protected function runInstaller()
42
    {
43
        $this->call('vendor:publish', ['--tag' => 'assets', '--force' => true]);
44
        $this->callSilent('sleepingowl:ide:generate');
45
46
        $this->comment('SleepingOwl Framework successfully updated.');
47
    }
48
}
49