@@ -152,7 +152,7 @@ discard block |
||
| 152 | 152 | $cachedResponse = $this->_cache->get($cacheKey); |
| 153 | 153 | |
| 154 | 154 | if ($cachedResponse !== null) { |
| 155 | - $this->logEvent('Cache hit for endpoint: ' . $endpoint); |
|
| 155 | + $this->logEvent('Cache hit for endpoint: '.$endpoint); |
|
| 156 | 156 | |
| 157 | 157 | return $cachedResponse; |
| 158 | 158 | } |
@@ -172,7 +172,7 @@ discard block |
||
| 172 | 172 | if ($method === 'GET' && $this->_cache) { |
| 173 | 173 | $cacheExpiration = $args['cache_expiration'] ?? self::CACHE_EXPIRATION_DEFAULT; |
| 174 | 174 | $this->_cache->set($cacheKey, $data, $cacheExpiration); |
| 175 | - $this->logEvent('Cached response for endpoint: ' . $endpoint); |
|
| 175 | + $this->logEvent('Cached response for endpoint: '.$endpoint); |
|
| 176 | 176 | } |
| 177 | 177 | |
| 178 | 178 | return $data; |
@@ -270,7 +270,7 @@ discard block |
||
| 270 | 270 | * @return Exception|mixed[] |
| 271 | 271 | * @throws GuzzleException |
| 272 | 272 | */ |
| 273 | - public function post(string $endpoint, array $args = []): array|Exception |
|
| 273 | + public function post(string $endpoint, array $args = []): array | Exception |
|
| 274 | 274 | { |
| 275 | 275 | |
| 276 | 276 | $args = array_merge($args, [ |
@@ -297,7 +297,7 @@ discard block |
||
| 297 | 297 | 'log' => 'tessitura', |
| 298 | 298 | ]); |
| 299 | 299 | |
| 300 | - $message = 'Tessitura API: ' . $message; |
|
| 300 | + $message = 'Tessitura API: '.$message; |
|
| 301 | 301 | |
| 302 | 302 | if ($this->getLogger()) { |
| 303 | 303 | $this->getLogger()->info($message, $args); |
@@ -442,6 +442,6 @@ discard block |
||
| 442 | 442 | 'args' => $keyArgs, |
| 443 | 443 | ]; |
| 444 | 444 | |
| 445 | - return 'tessitura:' . md5(json_encode($keyData)); |
|
| 445 | + return 'tessitura:'.md5(json_encode($keyData)); |
|
| 446 | 446 | } |
| 447 | 447 | } |