Browse Source

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

Ryan Weaver 11 years ago
parent
commit
947db97e33

+ 0 - 1
src/Composer/Command/CreateProjectCommand.php

@@ -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'])) {

+ 2 - 2
src/Composer/DependencyResolver/Pool.php

@@ -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)
     {
     {