CommandProvider::getCommands()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
eloc 6
c 0
b 0
f 0
nc 1
nop 0
dl 0
loc 8
ccs 0
cts 8
cp 0
crap 2
rs 10
1
<?php
2
/**
3
 * Plugins Management
4
 * @author Joe Huss <[email protected]>
5
 * @copyright 2019
6
 * @package MyAdmin
7
 * @category Plugins
8
 */
9
10
namespace MyAdmin\Plugins;
11
12
use Composer\Plugin\Capability\CommandProvider as CommandProviderCapability;
13
use MyAdmin\Plugins\Command\Command;
14
use MyAdmin\Plugins\Command\Parse;
15
use MyAdmin\Plugins\Command\CreateUser;
16
use MyAdmin\Plugins\Command\UpdatePlugins;
17
use MyAdmin\Plugins\Command\SetPermissions;
18
19
/**
20
 * Class CommandProvider
21
 *
22
 * @package MyAdmin\Plugins
23
 */
24
class CommandProvider implements CommandProviderCapability
25
{
26
	/**
27
	 * @return array
28
	 */
29
	public function getCommands()
30
	{
31
		return [
32
			new Command,
33
			new Parse,
34
			new CreateUser,
35
			new UpdatePlugins,
36
			new SetPermissions
37
		];
38
	}
39
}
40