@@ -23,5 +23,5 @@ |
||
23 | 23 | * @param mixed[] $args |
24 | 24 | * @return mixed[]|Exception |
25 | 25 | */ |
26 | - public function post(string $endpoint, array $args = []): array|Exception; |
|
26 | + public function post(string $endpoint, array $args = []): array | Exception; |
|
27 | 27 | } |
@@ -30,7 +30,7 @@ |
||
30 | 30 | public function description(): string |
31 | 31 | { |
32 | 32 | |
33 | - return (string)$this->_extraArgs['PerformanceDescription']; |
|
33 | + return (string) $this->_extraArgs['PerformanceDescription']; |
|
34 | 34 | } |
35 | 35 | |
36 | 36 | public function doorsOpen(): ?DateTime |
@@ -20,7 +20,7 @@ |
||
20 | 20 | |
21 | 21 | public function enabled(): bool |
22 | 22 | { |
23 | - return (bool)$this->_extraArgs['Enabled']; |
|
23 | + return (bool) $this->_extraArgs['Enabled']; |
|
24 | 24 | } |
25 | 25 | |
26 | 26 | public function performanceId(): int |
@@ -48,7 +48,7 @@ |
||
48 | 48 | $response = $this->client->get(self::RESOURCE); |
49 | 49 | $data = json_decode($response->getBody()->getContents(), true); |
50 | 50 | |
51 | - return array_map(function (array $season) { |
|
51 | + return array_map(function(array $season) { |
|
52 | 52 | return new Season($season); |
53 | 53 | }, $data); |
54 | 54 | } catch (GuzzleException $e) { |
@@ -28,7 +28,7 @@ |
||
28 | 28 | |
29 | 29 | public function getDescription(): string |
30 | 30 | { |
31 | - return (string)$this->extraArgs()['Description']; |
|
31 | + return (string) $this->extraArgs()['Description']; |
|
32 | 32 | } |
33 | 33 | |
34 | 34 | public function getEndDateTime(string $timezone = 'America/New_York'): ?DateTime |
@@ -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 | return $cachedResponse; |
157 | 157 | } |
158 | 158 | } |
@@ -171,7 +171,7 @@ discard block |
||
171 | 171 | if ($method === 'GET' && $this->_cache) { |
172 | 172 | $cacheExpiration = $args['cache_expiration'] ?? self::CACHE_EXPIRATION_DEFAULT; |
173 | 173 | $this->_cache->set($cacheKey, $data, $cacheExpiration); |
174 | - $this->logEvent('Cached response for endpoint: ' . $endpoint); |
|
174 | + $this->logEvent('Cached response for endpoint: '.$endpoint); |
|
175 | 175 | } |
176 | 176 | |
177 | 177 | return $data; |
@@ -263,7 +263,7 @@ discard block |
||
263 | 263 | * @return Exception|mixed[] |
264 | 264 | * @throws GuzzleException |
265 | 265 | */ |
266 | - public function post(string $endpoint, array $args = []): array|Exception |
|
266 | + public function post(string $endpoint, array $args = []): array | Exception |
|
267 | 267 | { |
268 | 268 | |
269 | 269 | $args = array_merge($args, [ |
@@ -290,7 +290,7 @@ discard block |
||
290 | 290 | 'log' => 'tessitura', |
291 | 291 | ]); |
292 | 292 | |
293 | - $message = 'Tessitura API: ' . $message; |
|
293 | + $message = 'Tessitura API: '.$message; |
|
294 | 294 | |
295 | 295 | if ($this->getLogger()) { |
296 | 296 | $this->getLogger()->info($message, $args); |
@@ -435,6 +435,6 @@ discard block |
||
435 | 435 | 'args' => $keyArgs |
436 | 436 | ]; |
437 | 437 | |
438 | - return 'tessitura:' . md5(json_encode($keyData)); |
|
438 | + return 'tessitura:'.md5(json_encode($keyData)); |
|
439 | 439 | } |
440 | 440 | } |
@@ -26,7 +26,7 @@ discard block |
||
26 | 26 | /** |
27 | 27 | * @throws InvalidArgumentException |
28 | 28 | */ |
29 | - public function firstPerformanceDate(string $timezone = 'America/New_York'): DateTime|bool |
|
29 | + public function firstPerformanceDate(string $timezone = 'America/New_York'): DateTime | bool |
|
30 | 30 | { |
31 | 31 | try { |
32 | 32 | $timezone = new DateTimeZone($timezone); |
@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | /** |
50 | 50 | * @throws InvalidArgumentException |
51 | 51 | */ |
52 | - public function lastPerformanceDate(string $timezone = 'America/New_York'): DateTime|bool |
|
52 | + public function lastPerformanceDate(string $timezone = 'America/New_York'): DateTime | bool |
|
53 | 53 | { |
54 | 54 | try { |
55 | 55 | $timezone = new DateTimeZone($timezone); |