MakeJsonSchemaRequestCommand   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 6
c 1
b 0
f 0
dl 0
loc 16
ccs 4
cts 4
cp 1
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getStub() 0 3 1
A getDefaultNamespace() 0 3 1
1
<?php
2
3
namespace Webtools\JsonSchemaRequest\Console;
4
5
use Illuminate\Console\GeneratorCommand;
6
7
class MakeJsonSchemaRequestCommand extends GeneratorCommand
8
{
9
    protected $name = 'make:json-request';
10
11
    protected $description = 'Create a new JSON Schema Request';
12
13
    protected $type = 'JsonSchemaRequest';
14
15 1
    protected function getStub()
16
    {
17 1
        return __DIR__ . '/../../stubs/json-schema-request.stub';
18
    }
19
20 1
    protected function getDefaultNamespace($rootNamespace)
21
    {
22 1
        return $rootNamespace . '\Http\Requests';
23
    }
24
}