Completed
Push — develop ( df9395...08456a )
by Abdelrahman
16:28
created

ModelMakeCommand   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 2
dl 0
loc 15
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A getDefaultNamespace() 0 4 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Cortex\Foundation\Console\Commands;
6
7
use Cortex\Foundation\Traits\ConsoleMakeModuleCommand;
8
use Illuminate\Foundation\Console\ModelMakeCommand as BaseModelMakeCommand;
9
10
class ModelMakeCommand extends BaseModelMakeCommand
11
{
12
    use ConsoleMakeModuleCommand;
13
14
    /**
15
     * Get the default namespace for the class.
16
     *
17
     * @param  string  $rootNamespace
18
     * @return string
19
     */
20
    protected function getDefaultNamespace($rootNamespace)
21
    {
22
        return $rootNamespace.'\Models';
23
    }
24
}
25