Passed
Push — master ( c0a3a7...3b84a4 )
by Jeroen
58:51
created

PostUpdate::execute()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 1
Code Lines 0

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
eloc 0
nc 1
nop 1
dl 0
loc 1
rs 10
c 0
b 0
f 0
ccs 0
cts 1
cp 0
crap 2
1
<?php
2
namespace Elgg\Composer;
3
4
use Composer\Installer\PackageEvent;
5
6
/**
7
 * A composer command handler to run after post-package-update event
8
 */
9
class PostUpdate {
10
	/**
11
	 * Todo
12
	 *
13
	 * @param PackageEvent $event The Composer event (install/upgrade)
1 ignored issue
show
Bug introduced by
The type Composer\Installer\PackageEvent 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...
14
	 *
15
	 * @return void
16
	 */
17
	public static function execute(PackageEvent $event) {
1 ignored issue
show
Unused Code introduced by
The parameter $event is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

17
	public static function execute(/** @scrutinizer ignore-unused */ PackageEvent $event) {

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

Loading history...
18
19
	}
20
}
21