Passed
Push — stable ( c117f7...5e5803 )
by Nuno
02:33
created

CommandMaker::getArguments()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 3
nc 1
nop 0
dl 0
loc 6
ccs 2
cts 2
cp 1
crap 1
rs 9.4285
c 0
b 0
f 0
1
<?php
2
3
namespace LaravelZero\Framework\Commands\App;
4
5
use Illuminate\Foundation\Console\ConsoleMakeCommand;
6
7
class CommandMaker extends ConsoleMakeCommand
8
{
9
    /**
10
     * The console command description.
11
     *
12
     * @var string
13
     */
14
    protected $description = 'Create a new command';
15
16
    /**
17
     * Get the desired class name from the input.
18
     *
19
     * @return string
20
     */
21 1
    protected function getNameInput()
22
    {
23 1
        return ucfirst(parent::getNameInput());
24
    }
25
26
    /**
27
     * Get the stub file for the generator.
28
     *
29
     * @return string
30
     */
31 1
    protected function getStub()
32
    {
33 1
        return __DIR__.'/stubs/console.stub';
34
    }
35
36
    /**
37
     * Get the default namespace for the class.
38
     *
39
     * @param  string $rootNamespace
40
     *
41
     * @return string
42
     */
43 1
    protected function getDefaultNamespace($rootNamespace)
44
    {
45 1
        return $rootNamespace.'\Commands';
46
    }
47
}
48