1
0
Fork 0

Fix nits on typos

pull/8503/head
Tyson Andre 2019-12-29 12:14:38 -05:00
parent 6034c2af01
commit 6827105a5b
3 changed files with 6 additions and 6 deletions

View File

@ -248,7 +248,7 @@ php composer.phar dump-autoload
```
This command will re-generate the `vendor/autoload.php` file.
See the [`dump-autoload`](03-cli.md#dump-autoload) section for more informations.
See the [`dump-autoload`](03-cli.md#dump-autoload) section for more information.
Including that file will also return the autoloader instance, so you can store
the return value of the include call in a variable and add more namespaces.

View File

@ -130,11 +130,11 @@ class SvnDownloader extends VcsDownloader
$this->io->writeError(sprintf(' <error>The package has modified file%s:</error>', $countChanges === 1 ? '' : 's'));
$this->io->writeError(array_slice($changes, 0, 10));
if ($countChanges > 10) {
$remaingChanges = $countChanges - 10;
$remainingChanges = $countChanges - 10;
$this->io->writeError(
sprintf(
' <info>'.$remaingChanges.' more file%s modified, choose "v" to view the full list</info>',
$remaingChanges === 1 ? '' : 's'
' <info>'.$remainingChanges.' more file%s modified, choose "v" to view the full list</info>',
$remainingChanges === 1 ? '' : 's'
)
);
}

View File

@ -53,7 +53,7 @@ class Hg
return;
}
// Try with the authentication informations available
// Try with the authentication information available
if (preg_match('{^(https?)://((.+)(?:\:(.+))?@)?([^/]+)(/.*)?}mi', $url, $match) && $this->io->hasAuthentication($match[5])) {
$auth = $this->io->getAuthentication($match[5]);
$authenticatedUrl = $match[1] . '://' . rawurlencode($auth['username']) . ':' . rawurlencode($auth['password']) . '@' . $match[5] . (!empty($match[6]) ? $match[6] : null);