CommandProvider   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A getCommands() 0 4 1
1
<?php
2
/**
3
 * Copyright MediaCT. All rights reserved.
4
 * https://www.mediact.nl
5
 */
6
7
namespace Mediact\DependencyGuard\Composer;
8
9
use Composer\Command\BaseCommand;
10
use Composer\Plugin\Capability\CommandProvider as CommandProviderCapability;
11
use Mediact\DependencyGuard\Composer\Command\DependencyGuardCommand;
12
13
class CommandProvider implements CommandProviderCapability
14
{
15
    /**
16
     * Retrieves a list of commands.
17
     *
18
     * @return BaseCommand[]
19
     */
20 1
    public function getCommands(): array
21
    {
22
        return [
23 1
            new DependencyGuardCommand()
24
        ];
25
    }
26
}
27