@@ -41,7 +41,7 @@ discard block |
||
| 41 | 41 | protected string $authType = '', |
| 42 | 42 | protected string $tokenName = 'token' |
| 43 | 43 | ) { |
| 44 | - if (! empty($credentials)) { |
|
| 44 | + if (!empty($credentials)) { |
|
| 45 | 45 | $this->parseCredentialsArray($credentials); |
| 46 | 46 | } |
| 47 | 47 | |
@@ -55,7 +55,7 @@ discard block |
||
| 55 | 55 | |
| 56 | 56 | protected function validate(): void |
| 57 | 57 | { |
| 58 | - Validator::make((array) $this, [ |
|
| 58 | + Validator::make((array)$this, [ |
|
| 59 | 59 | 'grantType' => Rule::in([self::GRANT_TYPE_CLIENT_CREDENTIALS, self::GRANT_TYPE_PASSWORD_CREDENTIALS]), |
| 60 | 60 | 'authType' => Rule::in([self::AUTH_TYPE_BEARER, self::AUTH_TYPE_BODY, self::AUTH_TYPE_QUERY, self::AUTH_TYPE_BASIC, self::AUTH_TYPE_CUSTOM]), |
| 61 | 61 | ])->validate(); |
@@ -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 | |
@@ -23,7 +23,7 @@ |
||
| 23 | 23 | */ |
| 24 | 24 | protected function validateOptions(): void |
| 25 | 25 | { |
| 26 | - Validator::make((array) $this, [ |
|
| 26 | + Validator::make((array)$this, [ |
|
| 27 | 27 | 'tokenType' => Rule::in([AccessToken::TYPE_BEARER, AccessToken::TYPE_QUERY, AccessToken::TYPE_CUSTOM]), |
| 28 | 28 | ])->validate(); |
| 29 | 29 | } |