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

Passed
Push — development ( 4b4ae2...928b46 )
by José
04:02
created

MakeModelCommand::rootNamespace()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
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';
0 ignored issues
show
Unused Code Comprehensibility introduced by
45% of this comment could be valid code. Did you maybe forget this after debugging?

Sometimes obsolete code just ends up commented out instead of removed. In this case it is better to remove the code once you have checked you do not need it.

The code might also have been commented out for debugging purposes. In this case it is vital that someone uncomments it again or your project may behave in very unexpected ways in production.

This check looks for comments that seem to be mostly valid code and reports them.

Loading history...
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
     * @return string
34
     */
35
    protected function rootNamespace()
36
    {
37
        return $this->laravel->getNamespace() . 'Models';
38
    }
39
40
    /**
41
     * Create a new command instance.
42
     *
43
     * @return void
44
     *
45
    public function __construct()
46
    {
47
        parent::__construct();
48
    }
49
    */
50
51
    /**
52
     * Execute the console command.
53
     *
54
     * @return mixed
55
     *
56
    public function handle()
57
    {
58
        //
59
    }
60
    */
61
}
62