@@ 339-355 (lines=17) @@ | ||
336 | } |
|
337 | } |
|
338 | ||
339 | private function checkForNotFoundErrors(array $puliPackages) |
|
340 | { |
|
341 | /** @var PuliPackage[] $notFoundPackages */ |
|
342 | $notFoundPackages = array_filter($puliPackages, |
|
343 | function (PuliPackage $package) { |
|
344 | return PuliPackage::STATE_NOT_FOUND === $package->getState() |
|
345 | && PuliPluginImpl::INSTALLER_NAME === $package->getInstallerName(); |
|
346 | }); |
|
347 | ||
348 | foreach ($notFoundPackages as $package) { |
|
349 | $this->printPackageWarning( |
|
350 | 'The package "%s" (at "%s") could not be found', |
|
351 | $package->getName(), |
|
352 | $package->getInstallPath() |
|
353 | ); |
|
354 | } |
|
355 | } |
|
356 | ||
357 | private function checkForNotLoadableErrors(array $puliPackages) |
|
358 | { |
|
@@ 357-372 (lines=16) @@ | ||
354 | } |
|
355 | } |
|
356 | ||
357 | private function checkForNotLoadableErrors(array $puliPackages) |
|
358 | { |
|
359 | /** @var PuliPackage[] $notLoadablePackages */ |
|
360 | $notLoadablePackages = array_filter($puliPackages, function (PuliPackage $package) { |
|
361 | return PuliPackage::STATE_NOT_LOADABLE === $package->getState() |
|
362 | && PuliPluginImpl::INSTALLER_NAME === $package->getInstallerName(); |
|
363 | }); |
|
364 | ||
365 | foreach ($notLoadablePackages as $package) { |
|
366 | $this->printPackageWarning( |
|
367 | 'The package "%s" (at "%s") could not be loaded', |
|
368 | $package->getName(), |
|
369 | $package->getInstallPath() |
|
370 | ); |
|
371 | } |
|
372 | } |
|
373 | ||
374 | private function adoptComposerName(array $puliPackages) |
|
375 | { |