From f79716109b02f4a2b87da58f0203811f6fe00f56 Mon Sep 17 00:00:00 2001 From: lanlin Date: Sun, 28 Apr 2024 15:05:40 +0000 Subject: [PATCH] code reformat workflow --- src/Management/Account.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Management/Account.php b/src/Management/Account.php index a7943e7..d92a743 100644 --- a/src/Management/Account.php +++ b/src/Management/Account.php @@ -228,15 +228,16 @@ public function revokeAllTokens(string $accountId, ?string $keepAccessToken = nu * * @see https://developer.nylas.com/docs/api/v2/#post-/a/client_id/accounts/id/token-info * - * @param string $accountId + * @param string $accountId * @param ?string $accessToken * * @return array * @throws GuzzleException */ - public function returnTokenInformation(string $accountId, string $accessToken = null): array + public function returnTokenInformation(string $accountId, ?string $accessToken = null): array { $params = empty($accessToken) ? [] : ['access_token' => $accessToken]; + return $this->options ->getSync() ->setPath($this->options->getClientId(), $accountId)