MoipConfigCommand   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 36
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 3
Bugs 1 Features 0
Metric Value
wmc 2
c 3
b 1
f 0
lcom 0
cbo 0
dl 0
loc 36
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A fire() 0 4 1
1
<?php namespace SOSTheBlack\Moip\Commands;
2
3
use Illuminate\Console\Command;
4
5
class MoipConfigCommand extends Command {
6
7
	/**
8
	 * The console command name.
9
	 *
10
	 * @var string
11
	 */
12
	protected $name = 'moip:config';
13
14
	/**
15
	 * The console command description.
16
	 *
17
	 * @var string
18
	 */
19
	protected $description = 'Criar arquivo de configuracao';
20
21
	/**
22
	 * Create a new command instance.
23
	 *
24
	 * @return void
0 ignored issues
show
Comprehensibility Best Practice introduced by
Adding a @return annotation to constructors is generally not recommended as a constructor does not have a meaningful return value.

Adding a @return annotation to a constructor is not recommended, since a constructor does not have a meaningful return value.

Please refer to the PHP core documentation on constructors.

Loading history...
25
	 */
26
	public function __construct()
27
	{
28
		parent::__construct();
29
	}
30
31
	/**
32
	 * Execute the console command.
33
	 *
34
	 * @return mixed
35
	 */
36
	public function fire()
37
	{
38
		$this->call('config:publish', ["--path" => "vendor/sostheblack/moip/src/config", "sostheblack/moip"]);
39
	}
40
}
41