Plugin   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 0
dl 0
loc 13
ccs 4
cts 4
cp 1
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getCapabilities() 0 6 1
A activate() 0 3 1
1
<?php
2
3
/*
4
 * This is part of the webuni/composer-yaml-plugin package.
5
 *
6
 * (c) Martin Hasoň <[email protected]>
7
 * (c) Webuni s.r.o. <[email protected]>
8
 *
9
 * For the full copyright and license information, please view the LICENSE
10
 * file that was distributed with this source code.
11
 */
12
13
namespace Webuni\ComposerYamlPlugin;
14
15
use Composer\Composer;
16
use Composer\IO\IOInterface;
17
use Composer\Plugin\Capability\CommandProvider as CommandProviderCapability;
18
use Composer\Plugin\Capable;
19
use Composer\Plugin\PluginInterface;
20
21
final class Plugin implements PluginInterface, Capable
22
{
23 1
    public function getCapabilities()
24
    {
25
        return [
26 1
            CommandProviderCapability::class => CommandProvider::class,
27
        ];
28
    }
29
30 1
    public function activate(Composer $composer, IOInterface $io)
31
    {
32 1
    }
33
}
34