mirror of
https://github.com/composer/composer
synced 2025-05-10 09:02:59 +00:00
Consistently reuse the new PlatformRepository::isPlatformPackage() method
This commit is contained in:
parent
046c54fdb8
commit
bd6f62c535
17 changed files with 25 additions and 25 deletions
|
@ -536,7 +536,7 @@ class ComposerRepository extends ArrayRepository implements ConfigurableReposito
|
|||
{
|
||||
if (!$this->hasPartialPackages() || !isset($this->partialPackagesByName[$name])) {
|
||||
// skip platform packages, root package and composer-plugin-api
|
||||
if (preg_match(PlatformRepository::PLATFORM_PACKAGE_REGEX, $name) || '__root__' === $name) {
|
||||
if (PlatformRepository::isPlatformPackage($name) || '__root__' === $name) {
|
||||
return array();
|
||||
}
|
||||
|
||||
|
@ -715,7 +715,7 @@ class ComposerRepository extends ArrayRepository implements ConfigurableReposito
|
|||
|
||||
$realName = preg_replace('{~dev$}', '', $name);
|
||||
// skip platform packages, root package and composer-plugin-api
|
||||
if (preg_match(PlatformRepository::PLATFORM_PACKAGE_REGEX, $realName) || '__root__' === $realName) {
|
||||
if (PlatformRepository::isPlatformPackage($realName) || '__root__' === $realName) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue