@@ -64,7 +64,7 @@ |
||
64 | 64 | * @param $method |
65 | 65 | * @param null $uri |
66 | 66 | * @param array $options |
67 | - * @return mixed|\Psr\Http\Message\ResponseInterface |
|
67 | + * @return \Psr\Http\Message\ResponseInterface |
|
68 | 68 | * @throws \GuzzleHttp\Exception\GuzzleException |
69 | 69 | */ |
70 | 70 | public function request($method, $uri = null, array $options = []) |
@@ -71,7 +71,7 @@ |
||
71 | 71 | { |
72 | 72 | $optionForToken = [ |
73 | 73 | 'headers' => [ |
74 | - 'Authorization' => ['Bearer '.$this->authStrategy->authenticateJwtToken($this->clientId, $this->secretKey, $this->token, true)], |
|
74 | + 'Authorization' => ['Bearer ' . $this->authStrategy->authenticateJwtToken($this->clientId, $this->secretKey, $this->token, true)], |
|
75 | 75 | 'content-type' => 'application/vnd.adobe.target.v1+json', |
76 | 76 | 'x-api-key' => $this->clientId |
77 | 77 | ], |
@@ -26,7 +26,7 @@ |
||
26 | 26 | * JwtStrategy constructor. |
27 | 27 | * |
28 | 28 | * @param ClientInterface $clientInterface |
29 | - * @param Cache|null $cache |
|
29 | + * @param Cache $cache |
|
30 | 30 | */ |
31 | 31 | public function __construct(ClientInterface $clientInterface, Cache $cache) |
32 | 32 | { |
@@ -76,7 +76,7 @@ discard block |
||
76 | 76 | 'POST', |
77 | 77 | $compiledUrl, |
78 | 78 | [ |
79 | - RequestOptions::JSON => [$audience->toArray()], |
|
79 | + RequestOptions::JSON => [$audience->toArray()], |
|
80 | 80 | |
81 | 81 | ] |
82 | 82 | ); |
@@ -108,7 +108,7 @@ discard block |
||
108 | 108 | 'PUT', |
109 | 109 | $compiledUrl, |
110 | 110 | [ |
111 | - RequestOptions::JSON => [$audience->toArray()], |
|
111 | + RequestOptions::JSON => [$audience->toArray()], |
|
112 | 112 | |
113 | 113 | ] |
114 | 114 | ); |
@@ -98,7 +98,7 @@ |
||
98 | 98 | { |
99 | 99 | $compiledUrl = sprintf($this->baseUrl, $tenant); |
100 | 100 | |
101 | - $compiledUrl = $compiledUrl. $audience->getId(); |
|
101 | + $compiledUrl = $compiledUrl . $audience->getId(); |
|
102 | 102 | |
103 | 103 | if (empty($audience->getId())) { |
104 | 104 | return; |