Plugin::getCapabilities()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 6
ccs 2
cts 2
cp 1
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 0
crap 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