Skip to content

Commit b57d9c3

Browse files
keenthekeengithub-actions[bot]
authored andcommitted
Fix styling
1 parent ed47484 commit b57d9c3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/VestaClient.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class VestaClient
1818

1919
protected string $tokenIssuer;
2020

21-
public function __construct(string $url = null, string $secret = null, string $issuer = null)
21+
public function __construct(?string $url = null, ?string $secret = null, ?string $issuer = null)
2222
{
2323
$this->httpClient = new PendingRequest();
2424
$this->httpClient->baseUrl($url ?? config('vesta-client.url'));
@@ -43,7 +43,7 @@ protected function getJwtBuilder(?string $expireTime = '+2 hour'): Builder
4343
->expiresAt($now->modify($expireTime ?? '+2 hour'));
4444
}
4545

46-
public function generateApiIdToken(?string $email, array $targets, array $fields, string $expireTime = null): string
46+
public function generateApiIdToken(?string $email, array $targets, array $fields, ?string $expireTime = null): string
4747
{
4848
$token = $this->getJwtBuilder($expireTime)->withClaim('fields', $fields)->withClaim('targets', $targets);
4949
if (isset($email)) {
@@ -53,7 +53,7 @@ public function generateApiIdToken(?string $email, array $targets, array $fields
5353
return $token->getToken($this->jwtConfig->signer(), $this->jwtConfig->signingKey())->toString();
5454
}
5555

56-
public function retrieveStudent(string $identifier, string $userEmail = null, array $fields = null): Response
56+
public function retrieveStudent(string $identifier, ?string $userEmail = null, ?array $fields = null): Response
5757
{
5858
return $this->httpClient->acceptJson()
5959
->withToken($this->generateApiIdToken($userEmail, [$identifier], $fields ?? ['student_id', 'title', 'first_name', 'last_name', 'email']))

0 commit comments

Comments
 (0)