Test Failed
Push — main ( 4e0aad...dae0a9 )
by Peter
14:09 queued 10:19
created
src/LaravelHttpOAuthHelperServiceProvider.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@  discard block
 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' => '',
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
             $accessToken = TokenStore::get(
24 24
                 refreshUrl: $refreshUrl,
25 25
                 credentials: $credentials instanceof Credentials ? $credentials : new Credentials($credentials),
26
-                options: $options instanceof Options ? $options : Options::make($options),
26
+                options : $options instanceof Options ? $options : Options::make($options),
27 27
             );
28 28
 
29 29
             /** @var PendingRequest|Factory $httpClient */
Please login to merge, or discard this patch.
src/AccessToken.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
 
40 40
     public function getExpiresIn(): int
41 41
     {
42
-        return (int) round(Carbon::now()->diffInSeconds($this->expiresAt));
42
+        return (int)round(Carbon::now()->diffInSeconds($this->expiresAt));
43 43
     }
44 44
 
45 45
     public function getHttpClient(PendingRequest $httpClient): PendingRequest
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
 
55 55
     protected function resolveCustomAuth(PendingRequest $httpClient): PendingRequest
56 56
     {
57
-        if (! is_callable($this->customCallback)) {
57
+        if (!is_callable($this->customCallback)) {
58 58
             throw new InvalidArgumentException('customCallback must be callable');
59 59
         }
60 60
 
Please login to merge, or discard this patch.
src/Credentials.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 
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
@@ -23,7 +23,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.