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

engine/classes/Elgg/Composer/PostUpdate.php (2 issues)

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
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
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