Completed
Push — master ( c4e061...659ca0 )
by Sébastien
05:05
created

Installer   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 0%

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A postInstall() 0 4 1
A postUpdate() 0 9 1
1
<?php
2
3
namespace PjbServer\Tools\Composer;
4
5
use Composer\Script\Event;
6
//use Composer\Installer\PackageEvent;
7
8
9
class Installer {
10
11
    static public function postInstall(Event $event)  {
0 ignored issues
show
Unused Code introduced by
The parameter $event is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Coding Style introduced by
As per PSR2, the static declaration should come after the visibility declaration.
Loading history...
12
        //var_dump($event);
13
14
    }
15
16
    static public function postUpdate(Event $event)  {
0 ignored issues
show
Unused Code introduced by
The parameter $event is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Coding Style introduced by
As per PSR2, the static declaration should come after the visibility declaration.
Loading history...
17
        //var_dump($event);
18
        /*
0 ignored issues
show
Unused Code Comprehensibility introduced by
60% of this comment could be valid code. Did you maybe forget this after debugging?

Sometimes obsolete code just ends up commented out instead of removed. In this case it is better to remove the code once you have checked you do not need it.

The code might also have been commented out for debugging purposes. In this case it is vital that someone uncomments it again or your project may behave in very unexpected ways in production.

This check looks for comments that seem to be mostly valid code and reports them.

Loading history...
19
        $package = $event->getName();
20
        $installManager = $event->getComposer()->getInstallationManager();
21
22
        echo $installManager->getInstallPath($package);
23
        */
24
    }
25
26
27
}