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

InstallCommand::runInstaller()   A

Complexity

Conditions 2
Paths 1

Size

Total Lines 23
Code Lines 17

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 2
eloc 17
nc 1
nop 0
dl 0
loc 23
rs 9.0856
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 InstallCommand extends Installation\Command
8
{
9
    /**
10
     * The name and signature of the console command.
11
     *
12
     * @var string
13
     */
14
    protected $signature = 'sleepingowl:install
15
                {--force : Force SleepingOwl to install even it has been already installed}';
16
17
    /**
18
     * The console command description.
19
     * @var string
20
     */
21
    protected $description = 'Install the SleepingOwl Admin package';
22
23
    protected function runInstaller()
24
    {
25
        collect([
26
            Installation\PublishAssets::class,
27
            Installation\CreateBootstrapDirectory::class,
28
            Installation\CreateBootstrapFile::class,
29
            Installation\CreateNavigationFile::class,
30
            Installation\CreateRoutesFile::class,
31
            Installation\CreateSectionServiceProvider::class,
32
            Installation\CreatePublicDirectory::class,
33
        ])
34
            ->map(function ($installer) {
35
                return new $installer($this, $this->config);
36
            })
37
            ->filter(function ($installer) {
38
                return $this->option('force') ? true : ! $installer->installed();
39
            })->each(function ($installer) {
40
                $installer->install();
41
                $installer->showInfo();
42
            });
43
44
        $this->comment('SleepingOwl Framework successfully installed.');
45
    }
46
}
47