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::runInstaller()   A

Complexity

Conditions 2
Paths 1

Size

Total Lines 17
Code Lines 11

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 2
eloc 11
nc 1
nop 0
dl 0
loc 17
rs 9.4285
c 0
b 0
f 0
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