Scrutinizer GitHub App not installed

We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.

Install GitHub App

Completed
Pull Request — master (#24)
by
unknown
02:02
created

ExtendPermissionManagerCommand::handle()   B

Complexity

Conditions 1
Paths 1

Size

Total Lines 32
Code Lines 19

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 32
rs 8.8571
cc 1
eloc 19
nc 1
nop 0
1
<?php
2
3
namespace Backpack\PermissionManager\Console\Commands;
4
5
use Artisan;
6
use Illuminate\Console\Command;
7
8
class ExtendPermissionManagerCommand extends Command
9
{
10
    /**
11
     * The name and signature of the console command.
12
     *
13
     * @var string
14
     */
15
    protected $signature = 'backpack:crud-permissions';
16
17
    /**
18
     * The console command description.
19
     *
20
     * @var string
21
     */
22
    protected $description = 'Extend CRUD permissions: Controllers, Models, Requests';
23
24
    /**
25
     * Execute the console command.
26
     *
27
     * @return mixed
28
     */
29
    public function handle()
30
    {
31
        // Extend the PermissionCrudController and show output
32
        Artisan::call('backpack:crud-permission-controller', ['name' => 'Permission']);
33
        echo Artisan::output();
34
        // Extend the RoleCrudController and show output
35
        Artisan::call('backpack:crud-permission-controller', ['name' => 'Role']);
36
        echo Artisan::output();
37
        // Extend the UserCrudController and show output
38
        Artisan::call('backpack:crud-permission-controller', ['name' => 'User', '--user' => 'default']);
39
        echo Artisan::output();
40
41
        // Extend the PermissionCrudRequest and show output
42
        Artisan::call('backpack:crud-permission-request', ['name' => 'Permission']);
43
        echo Artisan::output();
44
        // Extend the RoleCrudRequest and show output
45
        Artisan::call('backpack:crud-permission-request', ['name' => 'Role']);
46
        echo Artisan::output();
47
        // Extend the UserStoreCrudRequest and show output
48
        Artisan::call('backpack:crud-permission-request', ['name' => 'UserStore']);
49
        echo Artisan::output();
50
        // Extend the UserUpdateCrudRequest and show output
51
        Artisan::call('backpack:crud-permission-request', ['name' => 'UserUpdate']);
52
        echo Artisan::output();
53
54
        // Extend the Permission model and show output
55
        Artisan::call('backpack:crud-permission-model', ['name' => 'Permission']);
56
        echo Artisan::output();
57
        // Extend the Role model and show output
58
        Artisan::call('backpack:crud-permission-model', ['name' => 'Role']);
59
        echo Artisan::output();
60
    }
61
}
62