RatingsPlugin::activate()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 2
Code Lines 0

Duplication

Lines 0
Ratio 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
cc 1
eloc 0
c 2
b 0
f 0
nc 1
nop 2
dl 0
loc 2
rs 10
1
<?php
2
3
namespace SilverStripe\ModuleRatingsPlugin;
4
5
use Composer\Composer;
6
use Composer\IO\IOInterface;
7
use Composer\Plugin\Capability\CommandProvider;
8
use Composer\Plugin\Capable;
9
use Composer\Plugin\PluginInterface;
10
11
class RatingsPlugin implements PluginInterface, Capable
12
{
13
    public function activate(Composer $composer, IOInterface $io)
14
    {
15
        // noop
16
    }
17
18
    public function deactivate(Composer $composer, IOInterface $io)
19
    {
20
        // noop
21
    }
22
23
    public function uninstall(Composer $composer, IOInterface $io)
24
    {
25
        // noop
26
    }
27
28
    public function getCapabilities()
29
    {
30
        return [
31
            CommandProvider::class => RatingsCommandProvider::class,
32
        ];
33
    }
34
}
35