Tweak variable name
parent
b1110df873
commit
a3f2b7bb92
|
@ -758,17 +758,17 @@ class Installer
|
|||
}
|
||||
|
||||
// is this package a plugin?
|
||||
$is_plugin = $package->getType() === 'composer-plugin' || $package->getType() === 'composer-installer';
|
||||
$isPlugin = $package->getType() === 'composer-plugin' || $package->getType() === 'composer-installer';
|
||||
|
||||
// is this a plugin or a dependency of a plugin?
|
||||
if ($is_plugin || count(array_intersect($package->getNames(), $pluginRequires))) {
|
||||
if ($isPlugin || count(array_intersect($package->getNames(), $pluginRequires))) {
|
||||
// get the package's requires, but filter out any platform requirements or 'composer-plugin-api'
|
||||
$requires = array_filter(array_keys($package->getRequires()), function($req) {
|
||||
return $req !== 'composer-plugin-api' && !preg_match(PlatformRepository::PLATFORM_PACKAGE_REGEX, $req);
|
||||
});
|
||||
|
||||
// is this a plugin with no meaningful dependencies?
|
||||
if ($is_plugin && !count($requires)) {
|
||||
if ($isPlugin && !count($requires)) {
|
||||
// plugins with no dependencies go to the very front
|
||||
array_unshift($pluginsNoDeps, $op);
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue