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 ( f91a4c...f91a4c )
by Dave
39:26 queued 34:22
created

SectionGenerate::handle()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 8
Code Lines 4

Duplication

Lines 8
Ratio 100 %

Code Coverage

Tests 0
CRAP Score 6

Importance

Changes 0
Metric Value
dl 8
loc 8
ccs 0
cts 0
cp 0
rs 9.4285
c 0
b 0
f 0
cc 2
eloc 4
nc 2
nop 1
crap 6
1
<?php
2
3
namespace SleepingOwl\Admin\Console\Commands;
4
5
use Illuminate\Console\Command;
6
use SleepingOwl\Admin\Contracts\AdminInterface;
7
8
class SectionGenerate extends Command
9
{
10
    /**
11
     * The console command name.
12
     *
13
     * @var string
14
     */
15
    protected $name = 'sleepingowl:section:generate';
16
17
    /**
18
     * The console command description.
19
     *
20
     * @var string
21
     */
22
    protected $description = 'Generate the missing sections';
23
24
    /**
25
     * Execute the console command.
26
     *
27
     * @param AdminInterface $admin
28
     *
29
     * @return void
30
     */
31 View Code Duplication
    public function fire(AdminInterface $admin)
0 ignored issues
show
Duplication introduced by
This method seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
32
    {
33
        foreach ($admin->getMissedSections() as $model => $section) {
34
            $this->callSilent('sleepingowl:section:make', ['name' => $section, 'model' => $model]);
35
        }
36
37
        $this->info('Sections generated successfully!');
38
    }
39
40
    /**
41
     * Execute the console command.
42
     *
43
     * @param AdminInterface $admin
44
     *
45
     * @return void
46
     */
47 View Code Duplication
    public function handle(AdminInterface $admin)
0 ignored issues
show
Duplication introduced by
This method seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
48
    {
49
        foreach ($admin->getMissedSections() as $model => $section) {
50
            $this->callSilent('sleepingowl:section:make', ['name' => $section, 'model' => $model]);
51
        }
52
53
        $this->info('Sections generated successfully!');
54
    }
55
}
56