1
0
Fork 0
pull/4141/merge
Jordi Boggiano 2015-10-25 15:19:15 +00:00
parent 2e75cde60a
commit 3d9daea6a0
3 changed files with 8 additions and 9 deletions

View File

@ -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;
}

View File

@ -82,7 +82,7 @@ class ArchiveManagerTest extends ArchiverTest
protected function getTargetName(PackageInterface $package, $format, $fileName = null)
{
if(null === $fileName) {
if (null === $fileName) {
$packageName = $this->manager->getPackageFilename($package);
} else {
$packageName = $fileName;