@@ -121,7 +121,7 @@ discard block |
||
121 | 121 | $cachedResponse = $this->cache->get($cacheKey); |
122 | 122 | |
123 | 123 | if ($cachedResponse !== null) { |
124 | - $this->logEvent('Cache hit for endpoint: ' . $endpoint); |
|
124 | + $this->logEvent('Cache hit for endpoint: '.$endpoint); |
|
125 | 125 | |
126 | 126 | return $cachedResponse; |
127 | 127 | } |
@@ -141,7 +141,7 @@ discard block |
||
141 | 141 | if ($method === 'GET' && $this->cache) { |
142 | 142 | $cacheExpiration = $args['cache_expiration'] ?? self::CACHE_EXPIRATION_DEFAULT; |
143 | 143 | $this->cache->set($cacheKey, $data, $cacheExpiration); |
144 | - $this->logEvent('Cached response for endpoint: ' . $endpoint); |
|
144 | + $this->logEvent('Cached response for endpoint: '.$endpoint); |
|
145 | 145 | } |
146 | 146 | |
147 | 147 | return $data; |
@@ -232,7 +232,7 @@ discard block |
||
232 | 232 | * @return Exception|mixed[] |
233 | 233 | * @throws GuzzleException |
234 | 234 | */ |
235 | - public function post(string $endpoint, array $args = []): array|Exception |
|
235 | + public function post(string $endpoint, array $args = []): array | Exception |
|
236 | 236 | { |
237 | 237 | |
238 | 238 | $args = array_merge($args, [ |
@@ -259,7 +259,7 @@ discard block |
||
259 | 259 | 'log' => 'tessitura', |
260 | 260 | ]); |
261 | 261 | |
262 | - $message = 'Tessitura API: ' . $message; |
|
262 | + $message = 'Tessitura API: '.$message; |
|
263 | 263 | |
264 | 264 | if ($this->getLogger()) { |
265 | 265 | $this->getLogger()->info($message, $args); |
@@ -399,6 +399,6 @@ discard block |
||
399 | 399 | 'args' => $keyArgs, |
400 | 400 | ]; |
401 | 401 | |
402 | - return 'tessitura:' . md5(json_encode($keyData)); |
|
402 | + return 'tessitura:'.md5(json_encode($keyData)); |
|
403 | 403 | } |
404 | 404 | } |