ReleasePlugin   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Test Coverage

Coverage 66.67%

Importance

Changes 0
Metric Value
eloc 5
dl 0
loc 17
ccs 4
cts 6
cp 0.6667
rs 10
c 0
b 0
f 0
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A activate() 0 2 1
A getCommands() 0 4 1
A getCapabilities() 0 4 1
1
<?php
2
3
/*
4
 * This file is part of the egabor/composer-release-plugin package.
5
 *
6
 * (c) Gábor Egyed <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace egabor\Composer\ReleasePlugin;
13
14
use Composer\Composer;
15
use Composer\IO\IOInterface;
16
use Composer\Plugin\Capability\CommandProvider;
17
use Composer\Plugin\Capable;
18
use Composer\Plugin\PluginInterface;
19
use egabor\Composer\ReleasePlugin\Command\ReleaseCommand;
20
21
/**
22
 * @author Gábor Egyed <[email protected]>
23
 */
24
class ReleasePlugin implements Capable, CommandProvider, PluginInterface
25
{
26
    public function activate(Composer $composer, IOInterface $io)
27
    {
28
    }
29
30 1
    public function getCapabilities()
31
    {
32
        return [
33 1
            CommandProvider::class => __CLASS__,
34
        ];
35
    }
36
37 1
    public function getCommands()
38
    {
39
        return [
40 1
            new ReleaseCommand(),
41
        ];
42
    }
43
}
44