Passed
Push — main ( 7e2218...a00e1e )
by Peter
04:13
created
src/LaravelHttpOAuthHelperServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
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' => '',
Please login to merge, or discard this patch.
src/Credentials.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
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
 
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
             return $httpClient->withToken($this->token, $options->authType);
119 119
         }
120 120
         if ($options->authType === self::AUTH_TYPE_BASIC) {
121
-            if (! $this->clientId || ! $this->clientSecret) {
121
+            if (!$this->clientId || !$this->clientSecret) {
122 122
                 throw new InvalidArgumentException('Basic auth requires client id and client secret. Check documentation/readme. ');
123 123
             }
124 124
 
Please login to merge, or discard this patch.
src/Options.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
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,
Please login to merge, or discard this patch.
src/AccessToken.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
81 81
     {
82 82
         $uri = $response->effectiveUri();
83 83
 
84
-        if (! $uri) {
84
+        if (!$uri) {
85 85
             return null;
86 86
         }
87 87
 
Please login to merge, or discard this patch.