Test Failed
Push — main ( 4e0aad...dae0a9 )
by Peter
14:09 queued 10:19
created
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.