diff --git a/src/Composer/Command/SearchCommand.php b/src/Composer/Command/SearchCommand.php index 2ecae238f..061786300 100644 --- a/src/Composer/Command/SearchCommand.php +++ b/src/Composer/Command/SearchCommand.php @@ -120,7 +120,7 @@ EOT * tries to find a token within the name/keywords/description * * @param CompletePackageInterface $package - * @param string $token + * @param string $token * @return boolean */ private function matchPackage(CompletePackageInterface $package, $token) diff --git a/src/Composer/Command/ShowCommand.php b/src/Composer/Command/ShowCommand.php index 26629c870..174e5e0ad 100644 --- a/src/Composer/Command/ShowCommand.php +++ b/src/Composer/Command/ShowCommand.php @@ -146,7 +146,7 @@ EOT /** * finds a package by name and version if provided * - * @return array array(CompletePackageInterface, array of versions) + * @return array array(CompletePackageInterface, array of versions) * @throws \InvalidArgumentException */ protected function getPackage(RepositoryInterface $installedRepo, RepositoryInterface $repos, $name, $version = null) diff --git a/src/Composer/Command/ValidateCommand.php b/src/Composer/Command/ValidateCommand.php index 2f2e9b9c4..38a524125 100644 --- a/src/Composer/Command/ValidateCommand.php +++ b/src/Composer/Command/ValidateCommand.php @@ -16,12 +16,6 @@ use Composer\Util\ConfigValidator; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Input\InputArgument; use Symfony\Component\Console\Output\OutputInterface; -use Composer\Json\JsonFile; -use Composer\Json\JsonValidationException; -use Composer\Package\Loader\ValidatingArrayLoader; -use Composer\Package\Loader\ArrayLoader; -use Composer\Util\RemoteFilesystem; -use Composer\Util\SpdxLicenseIdentifier; /** * ValidateCommand diff --git a/src/Composer/Console/Application.php b/src/Composer/Console/Application.php index 856ea5583..80180fa6c 100755 --- a/src/Composer/Console/Application.php +++ b/src/Composer/Console/Application.php @@ -108,7 +108,7 @@ class Application extends BaseApplication } /** - * @param InputInterface $input + * @param InputInterface $input * @throws \RuntimeException */ private function switchWorkingDir(InputInterface $input) diff --git a/src/Composer/Downloader/FileDownloader.php b/src/Composer/Downloader/FileDownloader.php index 1337d041f..8a47aef58 100644 --- a/src/Composer/Downloader/FileDownloader.php +++ b/src/Composer/Downloader/FileDownloader.php @@ -124,8 +124,8 @@ class FileDownloader implements DownloaderInterface * Process the download url * * @param PackageInterface $package package the url is coming from - * @param string $url download url - * @return string url + * @param string $url download url + * @return string url * * @throws \RuntimeException If any problem with the url */ diff --git a/src/Composer/Downloader/VcsDownloader.php b/src/Composer/Downloader/VcsDownloader.php index 997705147..87aadca1a 100644 --- a/src/Composer/Downloader/VcsDownloader.php +++ b/src/Composer/Downloader/VcsDownloader.php @@ -135,8 +135,8 @@ abstract class VcsDownloader implements DownloaderInterface /** * Prompt the user to check if changes should be stashed/removed or the operation aborted * - * @param string $path - * @param bool $stash if true (update) the changes can be stashed and reapplied after an update, + * @param string $path + * @param bool $stash if true (update) the changes can be stashed and reapplied after an update, * if false (remove) the changes should be assumed to be lost if the operation is not aborted * @throws \RuntimeException in case the operation must be aborted */ diff --git a/src/Composer/Installer.php b/src/Composer/Installer.php index 01e16672e..afc035515 100644 --- a/src/Composer/Installer.php +++ b/src/Composer/Installer.php @@ -112,15 +112,15 @@ class Installer /** * Constructor * - * @param IOInterface $io - * @param Config $config - * @param RootPackageInterface $package - * @param DownloadManager $downloadManager - * @param RepositoryManager $repositoryManager - * @param Locker $locker - * @param InstallationManager $installationManager - * @param EventDispatcher $eventDispatcher - * @param AutoloadGenerator $autoloadGenerator + * @param IOInterface $io + * @param Config $config + * @param RootPackageInterface $package + * @param DownloadManager $downloadManager + * @param RepositoryManager $repositoryManager + * @param Locker $locker + * @param InstallationManager $installationManager + * @param EventDispatcher $eventDispatcher + * @param AutoloadGenerator $autoloadGenerator */ public function __construct(IOInterface $io, Config $config, RootPackageInterface $package, DownloadManager $downloadManager, RepositoryManager $repositoryManager, Locker $locker, InstallationManager $installationManager, EventDispatcher $eventDispatcher, AutoloadGenerator $autoloadGenerator) { diff --git a/src/Composer/Package/CompletePackage.php b/src/Composer/Package/CompletePackage.php index a2177214a..418c87d9e 100644 --- a/src/Composer/Package/CompletePackage.php +++ b/src/Composer/Package/CompletePackage.php @@ -12,8 +12,6 @@ namespace Composer\Package; -use Composer\Package\Version\VersionParser; - /** * Package containing additional metadata that is not used by the solver * diff --git a/src/Composer/Package/Locker.php b/src/Composer/Package/Locker.php index f4532230b..36530bea2 100644 --- a/src/Composer/Package/Locker.php +++ b/src/Composer/Package/Locker.php @@ -108,7 +108,7 @@ class Locker /** * Searches and returns an array of locked packages, retrieved from registered repositories. * - * @param bool $dev true to retrieve the locked dev packages + * @param bool $dev true to retrieve the locked dev packages * @return \Composer\Repository\RepositoryInterface */ public function getLockedRepository($dev = false) diff --git a/src/Composer/Package/RootPackage.php b/src/Composer/Package/RootPackage.php index 10bd826c5..798f045b7 100644 --- a/src/Composer/Package/RootPackage.php +++ b/src/Composer/Package/RootPackage.php @@ -12,8 +12,6 @@ namespace Composer\Package; -use Composer\Package\Version\VersionParser; - /** * The root package represents the project's composer.json and contains additional metadata * diff --git a/src/Composer/Package/Version/VersionParser.php b/src/Composer/Package/Version/VersionParser.php index a87184f53..16fdfc65f 100644 --- a/src/Composer/Package/Version/VersionParser.php +++ b/src/Composer/Package/Version/VersionParser.php @@ -171,10 +171,10 @@ class VersionParser } /** - * @param string $source source package name - * @param string $sourceVersion source package version (pretty version ideally) - * @param string $description link description (e.g. requires, replaces, ..) - * @param array $links array of package name => constraint mappings + * @param string $source source package name + * @param string $sourceVersion source package version (pretty version ideally) + * @param string $description link description (e.g. requires, replaces, ..) + * @param array $links array of package name => constraint mappings * @return Link[] */ public function parseLinks($source, $sourceVersion, $description, $links) diff --git a/src/Composer/Repository/PearRepository.php b/src/Composer/Repository/PearRepository.php index 7af8e6f4d..6d28b081d 100644 --- a/src/Composer/Repository/PearRepository.php +++ b/src/Composer/Repository/PearRepository.php @@ -83,7 +83,7 @@ class PearRepository extends ArrayRepository /** * Builds CompletePackages from PEAR package definition data. * - * @param ChannelInfo $channelInfo + * @param ChannelInfo $channelInfo * @return CompletePackage */ private function buildComposerPackages(ChannelInfo $channelInfo, VersionParser $versionParser) diff --git a/src/Composer/Repository/RepositoryInterface.php b/src/Composer/Repository/RepositoryInterface.php index 762164dad..69e48e4fb 100644 --- a/src/Composer/Repository/RepositoryInterface.php +++ b/src/Composer/Repository/RepositoryInterface.php @@ -59,9 +59,9 @@ interface RepositoryInterface extends \Countable * * If the callback returns false, the process stops * - * @param callable $callback - * @param string $class - * @return bool false if the process was interrupted, true otherwise + * @param callable $callback + * @param string $class + * @return bool false if the process was interrupted, true otherwise */ public function filterPackages($callback, $class = 'Composer\Package\Package'); diff --git a/src/Composer/Util/ConfigValidator.php b/src/Composer/Util/ConfigValidator.php index fb95d3b52..3a2f24e50 100644 --- a/src/Composer/Util/ConfigValidator.php +++ b/src/Composer/Util/ConfigValidator.php @@ -111,4 +111,4 @@ class ConfigValidator return array($errors, $publishErrors, $warnings); } -} \ No newline at end of file +}