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

Command   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 47
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 3

Importance

Changes 0
Metric Value
dl 0
loc 47
rs 10
c 0
b 0
f 0
wmc 4
lcom 1
cbo 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A fire() 0 17 3
runInstaller() 0 1 ?
A files() 0 4 1
1
<?php
2
3
namespace SleepingOwl\Admin\Console\Installation;
4
5
use Illuminate\Config\Repository;
6
use Illuminate\Filesystem\Filesystem;
7
use Illuminate\Console\ConfirmableTrait;
8
use Illuminate\Console\Command as ConsoleCommand;
9
10
abstract class Command extends ConsoleCommand
11
{
12
    use ConfirmableTrait;
13
14
    /**
15
     * @var Filesystem
16
     */
17
    protected $files;
18
19
    /**
20
     * @var Repository
21
     */
22
    protected $config;
23
24
    /**
25
     * Execute the console command.
26
     *
27
     * @param Filesystem $files
28
     */
29
    public function fire(Filesystem $files)
30
    {
31
        if (! defined('SLEEPINGOWL_STUB_PATH')) {
32
            define('SLEEPINGOWL_STUB_PATH', __DIR__.'/stubs');
33
        }
34
35
        if (! $this->confirmToProceed('SleepingOwl Admin')) {
36
            return;
37
        }
38
39
        $this->call('vendor:publish', ['--tag' => 'config']);
40
        $this->config = new Repository($this->laravel['config']->get('sleeping_owl'));
41
42
        $this->files = $files;
43
44
        $this->runInstaller();
45
    }
46
47
    abstract protected function runInstaller();
48
49
    /**
50
     * @return Filesystem
51
     */
52
    public function files()
53
    {
54
        return $this->files;
55
    }
56
}
57