Passed
Push — main ( a239d4...587dfd )
by Garbuz
02:44
created

MakeCommand   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 36
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A handle() 0 3 1
A __construct() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace GarbuzIvan\LaravelGeneratorPackage\Commands;
6
7
use Illuminate\Console\Command;
8
use Illuminate\Support\Composer;
9
10
class MakeCommand extends Command
11
{
12
    /**
13
     * The console command name.
14
     *
15
     * @var string
16
     */
17
    protected $name = 'lgp:make';
18
    /**
19
     * The console command description.
20
     *
21
     * @var string
22
     */
23
    protected $description = 'Generator the composer package from config file laravel-generator-package';
24
25
    /**
26
     * @var Composer
27
     */
28
    public Composer $composer;
29
30
    /**
31
     * Create a new command instance.
32
     */
33 1
    public function __construct()
34
    {
35 1
        parent::__construct();
36 1
    }
37
38
    /**
39
     * Execute the command.
40
     *
41
     * @return mixed
42
     */
43 1
    public function handle()
44
    {
45 1
        return 0;
46
    }
47
}
48