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.
Passed
Push — develop ( 3c2514...f82d0d )
by James
11:38
created

SetLatestVersion   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 42
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 3
eloc 11
c 1
b 0
f 0
dl 0
loc 42
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A handle() 0 12 2
A __construct() 0 3 1
1
<?php
2
3
namespace FireflyIII\Console\Commands;
4
5
use Illuminate\Console\Command;
6
7
class SetLatestVersion extends Command
8
{
9
    /**
10
     * The console command description.
11
     *
12
     * @var string
13
     */
14
    protected $description = 'Command description';
15
    /**
16
     * The name and signature of the console command.
17
     *
18
     * @var string
19
     */
20
    protected $signature = 'firefly-iii:set-latest-version {--james-is-cool}';
21
22
    /**
23
     * Create a new command instance.
24
     *
25
     * @return void
26
     */
27
    public function __construct()
28
    {
29
        parent::__construct();
30
    }
31
32
    /**
33
     * Execute the console command.
34
     *
35
     * @return mixed
36
     */
37
    public function handle()
38
    {
39
        if (!$this->option('james-is-cool')) {
40
            $this->error('Am too!');
41
42
            return;
43
        }
44
        app('fireflyconfig')->set('db_version', config('firefly.db_version'));
45
        app('fireflyconfig')->set('ff3_version', config('firefly.version'));
46
        $this->line('Updated version.');
47
48
        return 0;
49
    }
50
}
51