Completed
Push — master ( 0e1003...1276c7 )
by Abdelrahman
61:46 queued 59:06
created

ModelMakeCommand   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 3
dl 0
loc 17
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 Illuminate\Console\ConfirmableTrait;
8
use Cortex\Foundation\Traits\ConsoleMakeModuleCommand;
9
use Illuminate\Foundation\Console\ModelMakeCommand as BaseModelMakeCommand;
10
11
class ModelMakeCommand extends BaseModelMakeCommand
12
{
13
    use ConfirmableTrait;
14
    use ConsoleMakeModuleCommand;
15
16
    /**
17
     * Get the default namespace for the class.
18
     *
19
     * @param string $rootNamespace
20
     *
21
     * @return string
22
     */
23
    protected function getDefaultNamespace($rootNamespace): string
24
    {
25
        return $rootNamespace.'\Models';
26
    }
27
}
28