Skip to content

Commit 1ea5502

Browse files
Little cosmetic cleanups
1 parent a6c1b50 commit 1ea5502

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/API/Accounts/AccountsClient.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public function removeCollaboratorFromAcct(string $accessToken, int $acctId, int
4545
->delete("accounts/{$acctId}/collaborators/{$collabId}/{$role}/{$appId}");
4646
}
4747

48-
// this is named createSshPublicKey in the upstream mgmt-client codebase
48+
// this is named createSshPublicKey in upstream mgmt-client
4949
public function addSshKey(
5050
string $accessToken,
5151
int $accountId,

src/Command/Accounts/AddCollabToAcctCommand.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,24 +35,24 @@ public function configure()
3535
->addArgument('email', InputArgument::REQUIRED, 'Email address')
3636
->addArgument('accountId', InputArgument::REQUIRED, 'Account ID')
3737
->addArgument('roleId', InputArgument::REQUIRED, 'Role')
38-
->addOption('appId', null, InputOption::VALUE_OPTIONAL, 'App ID (acct-level if omitted)', 0)
39-
->addOption('displayName', null, InputOption::VALUE_OPTIONAL, 'Display Name', 0)
38+
->addOption('app', null, InputOption::VALUE_OPTIONAL, 'App ID (acct-level if omitted)', 0)
39+
->addOption('displayname', null, InputOption::VALUE_OPTIONAL, 'Display Name', 0)
4040
;
4141
$this->addOauthOptions();
4242
}
4343

4444
public function execute(InputInterface $input, OutputInterface $output): int
4545
{
4646
$newAcctEmail = $input->getArgument('email');
47-
$newAcctName = $input->getArgument('displayName');
47+
$newAcctName = $input->getArgument('displayname');
4848
if ($newAcctName === 0) { $newAcctName = $input->getArgument('email'); }
4949
$newAcctId = $input->getArgument('accountId');
5050
$newAcctRole = $this->roleToInt($input->getArgument('roleId'));
5151
if ($newAcctRole === false) {
5252
$output->writeln ("Invalid role, must be one of 'app-only-minimal', 'app-only', 'billing', 'tech', 'sub-admin', 'super-admin', 'owner'");
5353
return Command::FAILURE;
5454
}
55-
$newAppId = $input->getArgument('appId');
55+
$newAppId = $input->getArgument('app');
5656
$token = $this->token->token;
5757

5858
$r = $this->api->addCollaboratorToAcct($token,

0 commit comments

Comments
 (0)