GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

MakeDriverCommand   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 44
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 1
dl 0
loc 44
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A handle() 0 4 1
A getStub() 0 4 1
A getDefaultNamespace() 0 4 1
1
<?php
2
3
namespace WeAreNeopix\LaravelModelTranslation\Commands;
4
5
use Illuminate\Console\GeneratorCommand;
6
7
class MakeDriverCommand extends GeneratorCommand
8
{
9
    /**
10
     * The name and signature of the console command.
11
     *
12
     * @var string
13
     */
14
    protected $signature = 'translation:make-extension 
15
                                {name : Name of the extension to be created}';
16
17
    /**
18
     * The console command description.
19
     *
20
     * @var string
21
     */
22
    protected $description = 'Generate a new TranslationDriver class.';
23
24
    protected $type = 'TranslationDriver';
25
26
    /**
27
     * Execute the console command.
28
     *
29
     * @return mixed
30
     */
31
    public function handle()
32
    {
33
        parent::handle();
34
    }
35
36
    /**
37
     * Get the stub file for the generator.
38
     *
39
     * @return string
40
     */
41
    protected function getStub()
42
    {
43
        return __DIR__ . '/../../stubs/driver.stub';
44
    }
45
46
    protected function getDefaultNamespace($rootNamespace)
47
    {
48
        return $rootNamespace . '\TranslationDrivers';
49
    }
50
}
51