Rename PassphraseCredentialType subclasses for consistency

Summary: Ref T5655.

Test Plan: `arc unit` + `grep`

Reviewers: #blessed_reviewers, epriestley

Reviewed By: #blessed_reviewers, epriestley

Subscribers: epriestley, Korvin

Maniphest Tasks: T5655

Differential Revision: https://secure.phabricator.com/D13266
This commit is contained in:
Joshua Spence
2015-06-14 14:11:55 +10:00
parent addcef962b
commit ea7397f7e4
16 changed files with 42 additions and 41 deletions

View File

@@ -26,7 +26,7 @@ foreach (new LiskMigrationIterator($table) as $repository) {
if ($proto == 'http' || $proto == 'https' || $proto == 'svn') {
$username = $repository->getDetail('http-login');
$secret = $repository->getDetail('http-pass');
$type = PassphraseCredentialTypePassword::CREDENTIAL_TYPE;
$type = PassphrasePasswordCredentialType::CREDENTIAL_TYPE;
} else {
$username = $repository->getDetail('ssh-login');
if (!$username) {
@@ -42,10 +42,10 @@ foreach (new LiskMigrationIterator($table) as $repository) {
$file = $repository->getDetail('ssh-keyfile');
if ($file) {
$secret = $file;
$type = PassphraseCredentialTypeSSHPrivateKeyFile::CREDENTIAL_TYPE;
$type = PassphraseSSHPrivateKeyFileCredentialType::CREDENTIAL_TYPE;
} else {
$secret = $repository->getDetail('ssh-key');
$type = PassphraseCredentialTypeSSHPrivateKeyText::CREDENTIAL_TYPE;
$type = PassphraseSSHPrivateKeyTextCredentialType::CREDENTIAL_TYPE;
}
}