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
Push — master ( ec4e39...432da1 )
by Cristian
02:06
created

CrudBackpackCommand::handle()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 16
Code Lines 8

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 16
rs 9.4285
cc 1
eloc 8
nc 1
nop 0
1
<?php
2
3
namespace Backpack\Generators\Console\Commands;
4
5
use App\User;
6
use App\DripEmailer;
7
use Illuminate\Console\Command;
8
use Artisan;
9
10
class CrudBackpackCommand extends Command
11
{
12
    /**
13
     * The name and signature of the console command.
14
     *
15
     * @var string
16
     */
17
    protected $signature = 'backpack:crud {name}';
18
19
    /**
20
     * The console command description.
21
     *
22
     * @var string
23
     */
24
    protected $description = 'Create a CRUD interface: Controller, Model, Request';
25
26
    /**
27
     * Execute the console command.
28
     *
29
     * @return mixed
30
     */
31
    public function handle()
32
    {
33
        $name = ucfirst($this->argument('name'));
34
35
        // Create the CRUD Controller and show output
36
        Artisan::call('backpack:crud-controller', ['name' => $name]);
37
        echo(Artisan::output());
38
39
        // Create the CRUD Model and show output
40
        Artisan::call('backpack:crud-model', ['name' => $name]);
41
        echo(Artisan::output());
42
43
        // Create the CRUD Request and show output
44
        Artisan::call('backpack:crud-request', ['name' => $name]);
45
        echo(Artisan::output());
46
    }
47
}