diff --git a/src/Composer/Package/BasePackage.php b/src/Composer/Package/BasePackage.php index ec05fa7be..274cdd945 100644 --- a/src/Composer/Package/BasePackage.php +++ b/src/Composer/Package/BasePackage.php @@ -142,5 +142,4 @@ abstract class BasePackage implements PackageInterface 'type' => strtolower(!empty($matches[4]) ? $matches[4] : 'stable'), ); } - } diff --git a/src/Composer/Package/LinkConstraint/SpecificConstraint.php b/src/Composer/Package/LinkConstraint/SpecificConstraint.php index 1c63821c2..e21048b68 100644 --- a/src/Composer/Package/LinkConstraint/SpecificConstraint.php +++ b/src/Composer/Package/LinkConstraint/SpecificConstraint.php @@ -24,7 +24,7 @@ abstract class SpecificConstraint implements LinkConstraintInterface if ($provider instanceof MultiConstraint) { // turn matching around to find a match return $provider->matches($this); - } else if ($provider instanceof $this) { + } elseif ($provider instanceof $this) { return $this->matchSpecific($provider); }