diff --git a/src/Composer/Factory.php b/src/Composer/Factory.php index 41cf4fe9f..65cd8e3ed 100644 --- a/src/Composer/Factory.php +++ b/src/Composer/Factory.php @@ -61,7 +61,7 @@ class Factory } /** - * @param string $home + * @param string $home * @return string */ protected static function getCacheDir($home) @@ -411,8 +411,8 @@ class Factory } /** - * @param Config $config The configuration - * @param Downloader\DownloadManager $dm Manager use to download sources + * @param Config $config The configuration + * @param Downloader\DownloadManager $dm Manager use to download sources * @return Archiver\ArchiveManager */ public function createArchiveManager(Config $config, Downloader\DownloadManager $dm = null) diff --git a/src/Composer/Installer/InstallationManager.php b/src/Composer/Installer/InstallationManager.php index e2dc01c51..203f7ec1a 100644 --- a/src/Composer/Installer/InstallationManager.php +++ b/src/Composer/Installer/InstallationManager.php @@ -234,10 +234,9 @@ class InstallationManager public function notifyInstalls(IOInterface $io) { foreach ($this->notifiablePackages as $repoUrl => $packages) { - $repositoryName = parse_url ($repoUrl, PHP_URL_HOST); - if ($io->hasAuthentication ($repositoryName)) - { - $auth = $io->getAuthentication ($repositoryName); + $repositoryName = parse_url($repoUrl, PHP_URL_HOST); + if ($io->hasAuthentication($repositoryName)) { + $auth = $io->getAuthentication($repositoryName); $authStr = base64_encode($auth['username'] . ':' . $auth['password']); $authHeader = 'Authorization: Basic '.$authStr; } diff --git a/tests/Composer/Test/Package/Archiver/ArchiveManagerTest.php b/tests/Composer/Test/Package/Archiver/ArchiveManagerTest.php index 402178de1..16180bd5d 100644 --- a/tests/Composer/Test/Package/Archiver/ArchiveManagerTest.php +++ b/tests/Composer/Test/Package/Archiver/ArchiveManagerTest.php @@ -79,10 +79,10 @@ class ArchiveManagerTest extends ArchiverTest unlink($target); } - + protected function getTargetName(PackageInterface $package, $format, $fileName = null) { - if(null === $fileName) { + if (null === $fileName) { $packageName = $this->manager->getPackageFilename($package); } else { $packageName = $fileName;