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

Test Setup Failed
Pull Request — development (#68)
by José
06:06
created

MakeModelCommand   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 55
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 2
lcom 1
cbo 2
dl 0
loc 55
ccs 0
cts 5
cp 0
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getPath() 0 6 1
A rootNamespace() 0 4 1
1
<?php
2
3
namespace GiveBlood\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 Modules namespace';
23
24
25
    protected function getPath($name)
26
    {
27
        $name = str_replace_first($this->rootNamespace(), '', $name);
0 ignored issues
show
Deprecated Code introduced by
The function str_replace_first() has been deprecated with message: Str::replaceFirst() should be used directly instead. Will be removed in Laravel 5.9.

This function has been deprecated. The supplier of the file has supplied an explanatory message.

The explanatory message should give you some clue as to whether and when the function will be removed from the class and what other function to use instead.

Loading history...
28
29
        return $this->laravel[ 'path' ].'/Modules/'.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().'Modules';
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