Skip to content

Commit

Permalink
Updated usage of the Expr class
Browse files Browse the repository at this point in the history
  • Loading branch information
webmozart committed Apr 13, 2015
1 parent 5282061 commit 5804e80
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/PuliPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -223,8 +223,8 @@ private function removeRemovedPackages(array $composerPackages, PackageManager $
{
$rootDir = $packageManager->getEnvironment()->getRootDirectory();

$expr = Expr::same(Package::INSTALLER, self::INSTALLER_NAME)
->andSame(Package::STATE, PackageState::NOT_FOUND);
$expr = Expr::same(self::INSTALLER_NAME, Package::INSTALLER)
->andSame(PackageState::NOT_FOUND, Package::STATE);

foreach ($packageManager->findPackages($expr) as $packageName => $package) {
// Check whether package was only moved
Expand All @@ -248,8 +248,8 @@ private function checkForLoadErrors(PackageManager $packageManager, IOInterface
{
$rootDir = $packageManager->getEnvironment()->getRootDirectory();

$notFoundExpr = Expr::same(Package::STATE, PackageState::NOT_FOUND);
$notLoadableExpr = Expr::same(Package::STATE, PackageState::NOT_LOADABLE);
$notFoundExpr = Expr::same(PackageState::NOT_FOUND, Package::STATE);
$notLoadableExpr = Expr::same(PackageState::NOT_LOADABLE, Package::STATE);

foreach ($packageManager->findPackages($notFoundExpr) as $package) {
$this->printPackageWarning(
Expand Down

0 comments on commit 5804e80

Please sign in to comment.