This class seems to be duplicated in your project.
Duplicated code is one of the most pungent code smells. If you need to duplicate
the same code in three or more different places, we strongly encourage you to
look into extracting the code into a single class or operation.
You can also find more detailed suggestions in the “Code” section of your repository.
Loading history...
9
{
10
/**
11
* The console command signature.
12
*
13
* @var string
14
*/
15
protected $signature = 'adr:rule {name}';
16
17
/**
18
* The console command description.
19
*
20
* @var string
21
*/
22
protected $description = 'Create a new Custom Rule';
23
24
/**
25
* The type of class being generated.
26
*
27
* @var string
28
*/
29
protected $type = 'Custom Rule';
30
31
/**
32
* Get the stub file for the generator.
33
*
34
* @return string
35
*/
36
protected function getStub()
37
{
38
return __DIR__.'/stubs/custom-rule.stub';
39
}
40
41
/**
42
* Get the default namespace for the class.
43
*
44
* @param string $rootNamespace
45
*
46
* @return string
47
*/
48
protected function getDefaultNamespace($rootNamespace)
Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.
You can also find more detailed suggestions in the “Code” section of your repository.