ThemeInstallerPlugin   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
c 1
b 0
f 0
lcom 0
cbo 3
dl 0
loc 10
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A activate() 0 4 1
1
<?php
2
/*
3
 * This file is part of the phpdish/theme-installer package.
4
 *
5
 * (c) Slince <[email protected]>
6
 *
7
 * For the full copyright and license information, please view the LICENSE
8
 * file that was distributed with this source code.
9
 */
10
11
namespace PHPDish\ThemeInstaller;
12
13
use Composer\Composer;
14
use Composer\IO\IOInterface;
15
use Composer\Plugin\PluginInterface;
16
17
class ThemeInstallerPlugin implements PluginInterface
18
{
19
    /**
20
     * {@inheritdoc}
21
     */
22
    public function activate(Composer $composer, IOInterface $io)
23
    {
24
        $composer->getInstallationManager()->addInstaller(new ThemeInstaller($io, $composer));
25
    }
26
}