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

MakeModelCommand::rootNamespace()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 0
cts 2
cp 0
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 2
1
<?php
2
3
namespace DoeSangue\Console\Commands;
4
5
//use Illuminate\Console\Command;
6
use Illuminate\Foundation\Console\ModelMakeCommand;
7
8
class MakeModelCommand extends ModelMakeCommand
9
{
10
    /**
11
     * The name and signature of the console command.
12
     *
13
     * @var string
14
     */
15
    //   protected $signature = 'make:model';
16
17
    /**
18
     * The console command description.
19
     *
20
     * @var string
21
     */
22
    protected $description = 'Create a new model class with Models namespace';
23
24
25
    protected function getPath($name)
26
    {
27
        $name = str_replace_first($this->rootNamespace(), '', $name);
28
29
        return $this->laravel[ 'path' ].'/Models/'.str_replace('\\', '/', $name).'.php';
30
    }
31
    /**
32
     * Get the root namespace for the class.
33
     *
34
     * @return string
35
     */
36
    protected function rootNamespace()
37
    {
38
        return $this->laravel->getNamespace().'Models';
39
    }
40
41
    /**
42
     * Create a new command instance.
43
     *
44
     * @return void
45
     *
46
    public function __construct()
47
    {
48
        parent::__construct();
49
    }
50
     */
51
52
    /**
53
     * Execute the console command.
54
     *
55
     * @return mixed
56
     *
57
    public function handle()
58
    {
59
        //
60
    }
61
     */
62
}
63