@@ -11,7 +11,7 @@ |
||
| 11 | 11 | { |
| 12 | 12 | public function boot(): void |
| 13 | 13 | { |
| 14 | - Http::macro('withRefreshToken', function ( |
|
| 14 | + Http::macro('withRefreshToken', function( |
|
| 15 | 15 | string $refreshUrl, |
| 16 | 16 | string|array|Credentials $credentials = [ |
| 17 | 17 | 'refresh_token' => '', |
@@ -42,7 +42,7 @@ |
||
| 42 | 42 | protected function validateOptions(): void |
| 43 | 43 | { |
| 44 | 44 | // Note: closures can't be checked at this point since we don't have access to the response objects |
| 45 | - Validator::make((array) $this, [ |
|
| 45 | + Validator::make((array)$this, [ |
|
| 46 | 46 | 'scopes.*' => 'string', |
| 47 | 47 | 'authType' => Rule::in([ |
| 48 | 48 | Credentials::AUTH_TYPE_BEARER, |
@@ -40,7 +40,7 @@ discard block |
||
| 40 | 40 | |
| 41 | 41 | public function getExpiresIn(): int |
| 42 | 42 | { |
| 43 | - return (int) round(Carbon::now()->diffInSeconds($this->expiresAt)); |
|
| 43 | + return (int)round(Carbon::now()->diffInSeconds($this->expiresAt)); |
|
| 44 | 44 | } |
| 45 | 45 | |
| 46 | 46 | public function getTokenType(): string |
@@ -70,7 +70,7 @@ discard block |
||
| 70 | 70 | |
| 71 | 71 | protected function resolveCustomAuth(PendingRequest $httpClient): PendingRequest |
| 72 | 72 | { |
| 73 | - if (! is_callable($this->customCallback)) { |
|
| 73 | + if (!is_callable($this->customCallback)) { |
|
| 74 | 74 | throw new InvalidArgumentException('customCallback must be callable'); |
| 75 | 75 | } |
| 76 | 76 | |
@@ -81,7 +81,7 @@ discard block |
||
| 81 | 81 | { |
| 82 | 82 | $uri = $response->effectiveUri(); |
| 83 | 83 | |
| 84 | - if (! $uri) { |
|
| 84 | + if (!$uri) { |
|
| 85 | 85 | return null; |
| 86 | 86 | } |
| 87 | 87 | |
@@ -41,7 +41,7 @@ discard block |
||
| 41 | 41 | protected ?string $clientId = null, |
| 42 | 42 | protected ?string $clientSecret = null, |
| 43 | 43 | ) { |
| 44 | - if (! empty($credentials)) { |
|
| 44 | + if (!empty($credentials)) { |
|
| 45 | 45 | $this->parseCredentialsArray($credentials); |
| 46 | 46 | } |
| 47 | 47 | |
@@ -115,7 +115,7 @@ discard block |
||
| 115 | 115 | } |
| 116 | 116 | |
| 117 | 117 | if ($options->authType === self::AUTH_TYPE_BASIC) { |
| 118 | - if (! $this->clientId || ! $this->clientSecret) { |
|
| 118 | + if (!$this->clientId || !$this->clientSecret) { |
|
| 119 | 119 | throw new InvalidArgumentException('Basic auth requires client id and client secret. Check documentation/readme.'); |
| 120 | 120 | } |
| 121 | 121 | |