InstallerPlugin   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 2
Bugs 1 Features 0
Metric Value
eloc 3
c 2
b 1
f 0
dl 0
loc 12
ccs 0
cts 4
cp 0
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A activate() 0 4 1
1
<?php
2
/**
3
 * Plugins Management
4
 * @author Joe Huss <[email protected]>
5
 * @copyright 2019
6
 * @package MyAdmin
7
 * @category Plugins
8
 */
9
10
/**
11
 * MyAdmin Installer Plugin
12
 * Implements https://github.com/composer/composer/blob/master/src/Composer/Plugin/PluginInterface.php
13
 */
14
15
namespace MyAdmin\Plugins;
16
17
use Composer\Composer;
18
use Composer\IO\IOInterface;
19
use Composer\Plugin\PluginInterface;
20
21
/**
22
 * MyAdmin Installer Plugin
23
 */
24
class InstallerPlugin implements PluginInterface
25
{
26
	/**
27
	 * Apply plugin modifications to Composer
28
	 *
29
	 * @param \Composer\Composer	$composer
0 ignored issues
show
Bug introduced by
The type Composer\Composer was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
30
	 * @param \Composer\IO\IOInterface $io
0 ignored issues
show
Bug introduced by
The type Composer\IO\IOInterface was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
31
	 */
32
	public function activate(Composer $composer, IOInterface $io)
33
	{
34
		$installer = new Installer($io, $composer);
35
		$composer->getInstallationManager()->addInstaller($installer);
36
	}
37
}
38