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 ( 414922...a9bc98 )
by butschster
12:35
created

UpdateCommand   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 33
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A runInstaller() 0 17 2
1
<?php
2
3
namespace SleepingOwl\Admin\Console\Commands;
4
5
use SleepingOwl\Admin\Console\Installation;
6
7
class UpdateCommand extends Installation\Command
8
{
9
    /**
10
     * The name and signature of the console command.
11
     *
12
     * @var string
13
     */
14
    protected $signature = 'sleepingowl:update';
15
16
    /**
17
     * The console command description.
18
     * @var string
19
     */
20
    protected $description = 'Update the SleepingOwl Admin package';
21
22
    protected function runInstaller()
23
    {
24
        collect([
25
            Installation\PublishAssets::class,
26
        ])
27
            ->map(function ($installer) {
28
                return new $installer($this, $this->config);
29
            })
30
            ->filter(function ($installer) {
31
                return $this->option('force') ? true : ! $installer->installed();
32
            })->each(function ($installer) {
33
                $installer->install();
34
                $installer->showInfo();
35
            });
36
37
        $this->comment('SleepingOwl Framework successfully updated.');
38
    }
39
}
40