@@ -42,7 +42,7 @@ discard block |
||
42 | 42 | protected string $authType = self::AUTH_TYPE_BASIC, //TODO: Which auth type should be default? |
43 | 43 | protected string $tokenName = 'token' |
44 | 44 | ) { |
45 | - if (! empty($credentials)) { |
|
45 | + if (!empty($credentials)) { |
|
46 | 46 | $this->parseCredentialsArray($credentials); |
47 | 47 | } |
48 | 48 | |
@@ -110,7 +110,7 @@ discard block |
||
110 | 110 | return $httpClient->withToken($this->token); |
111 | 111 | } |
112 | 112 | if ($this->authType === self::AUTH_TYPE_BASIC) { |
113 | - if (! $this->clientId || ! $this->clientSecret) { |
|
113 | + if (!$this->clientId || !$this->clientSecret) { |
|
114 | 114 | throw new InvalidArgumentException('Basic auth requires client id and client secret. Check documentation/readme. '); |
115 | 115 | } |
116 | 116 |
@@ -24,7 +24,7 @@ |
||
24 | 24 | |
25 | 25 | protected function validateOptions(): void |
26 | 26 | { |
27 | - Validator::make((array) $this, [ |
|
27 | + Validator::make((array)$this, [ |
|
28 | 28 | 'grantType' => Rule::in([Credentials::GRANT_TYPE_CLIENT_CREDENTIALS, Credentials::GRANT_TYPE_PASSWORD_CREDENTIALS]), |
29 | 29 | 'tokenType' => Rule::in([AccessToken::TYPE_BEARER, AccessToken::TYPE_QUERY, AccessToken::TYPE_CUSTOM]), |
30 | 30 | ])->validate(); |