Skip to content

Commit

Permalink
Resolve phpstan warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
dsmith4-godaddy committed Oct 31, 2024
1 parent bd2121e commit 676f9a1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions src/API/Accounts/AccountsClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class AccountsClient extends BaseApiClient
{
protected $apiName = 'accounts';

public function getCollaborators(string $accessToken, string $accountId)
public function getCollaborators(string $accessToken, int $accountId)
{
return $this->guzzle($this->getBearerTokenMiddleware($accessToken))->get("accounts/{$accountId}/access");
}
Expand Down Expand Up @@ -47,7 +47,7 @@ public function removeCollaboratorFromAcct(string $accessToken, int $acctId, int

public function createSshPublicKey(
string $accessToken,
string $accountId,
int $accountId,
string $key,
?string $orchestration = null,
?string $sshUsername = null,
Expand Down
16 changes: 8 additions & 8 deletions src/Command/Accounts/AddCollabToAcctCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,30 +68,30 @@ private function roleToInt(string $role)
case "app-only-minimal":
case "apponlyminimal":
case "1":
return 1; break;
return 1;
case "app-only":
case "apponly":
case "2":
return 2; break;
return 2;
case "billing":
case "4":
return 4; break;
return 4;
case "tech":
case "6":
return 6; break;
return 6;
case "sub-admin":
case "subadmin":
case "8":
return 8; break;
return 8;
case "super-admin":
case "superadmin":
case "9":
return 9; break;
return 9;
case "owner":
case "10":
return 10; break;
return 10;
default:
return false; break;
return false;
}
return false;
}
Expand Down

0 comments on commit 676f9a1

Please sign in to comment.