[#2492] Removing an unused variable and use statement, fixing phpdoc

main
Ryan Weaver 10 years ago
parent d79f2b0fd3
commit 947db97e33

@ -242,7 +242,6 @@ EOT
} }
$parser = new VersionParser(); $parser = new VersionParser();
$candidates = array();
$requirements = $parser->parseNameVersionPairs(array($packageName)); $requirements = $parser->parseNameVersionPairs(array($packageName));
$name = strtolower($requirements[0]['name']); $name = strtolower($requirements[0]['name']);
if (!$packageVersion && isset($requirements[0]['version'])) { if (!$packageVersion && isset($requirements[0]['version'])) {

@ -15,7 +15,6 @@ namespace Composer\DependencyResolver;
use Composer\Package\BasePackage; use Composer\Package\BasePackage;
use Composer\Package\AliasPackage; use Composer\Package\AliasPackage;
use Composer\Package\Version\VersionParser; use Composer\Package\Version\VersionParser;
use Composer\Package\Link;
use Composer\Package\LinkConstraint\LinkConstraintInterface; use Composer\Package\LinkConstraint\LinkConstraintInterface;
use Composer\Package\LinkConstraint\VersionConstraint; use Composer\Package\LinkConstraint\VersionConstraint;
use Composer\Package\LinkConstraint\EmptyConstraint; use Composer\Package\LinkConstraint\EmptyConstraint;
@ -25,6 +24,7 @@ use Composer\Repository\ComposerRepository;
use Composer\Repository\InstalledRepositoryInterface; use Composer\Repository\InstalledRepositoryInterface;
use Composer\Repository\StreamableRepositoryInterface; use Composer\Repository\StreamableRepositoryInterface;
use Composer\Repository\PlatformRepository; use Composer\Repository\PlatformRepository;
use Composer\Package\PackageInterface;
/** /**
* A package pool contains repositories that provide packages. * A package pool contains repositories that provide packages.
@ -232,7 +232,7 @@ class Pool
* packages must match or null to return all * packages must match or null to return all
* @param bool $mustMatchName Whether the name of returned packages * @param bool $mustMatchName Whether the name of returned packages
* must match the given name * must match the given name
* @return array A set of packages * @return PackageInterface[] A set of packages
*/ */
public function whatProvides($name, LinkConstraintInterface $constraint = null, $mustMatchName = false) public function whatProvides($name, LinkConstraintInterface $constraint = null, $mustMatchName = false)
{ {

Loading…
Cancel
Save