Completed
Pull Request — master (#7)
by
unknown
12:18 queued 10:05
created

CommandProvider::getCommands()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 4
nc 1
nop 0
dl 0
loc 6
ccs 0
cts 6
cp 0
crap 2
rs 10
c 1
b 0
f 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace drupol\ComposerPackages;
6
7
use Composer\Plugin\Capability\CommandProvider as CommandProviderCapability;
8
use drupol\ComposerPackages\Commands\Dependencies;
9
use drupol\ComposerPackages\Commands\PackagesType;
10
use drupol\ComposerPackages\Commands\ReverseDependencies;
11
12
class CommandProvider implements CommandProviderCapability
13
{
14
    public function getCommands()
15
    {
16
        return [
17
            new Dependencies(),
18
            new PackagesType(),
19
            new ReverseDependencies(),
20
        ];
21
    }
22
}
23