@@ -23,5 +23,5 @@ |
||
| 23 | 23 | * @param array $args |
| 24 | 24 | * @return array|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 | } |
| 28 | 28 | \ No newline at end of file |
@@ -59,7 +59,7 @@ |
||
| 59 | 59 | public function getPerformancesForProductionSeason(int $psId): array |
| 60 | 60 | { |
| 61 | 61 | return $this->search([ |
| 62 | - 'ProductionSeasonIds' => (string)$psId, |
|
| 62 | + 'ProductionSeasonIds' => (string) $psId, |
|
| 63 | 63 | ]); |
| 64 | 64 | } |
| 65 | 65 | |
@@ -31,7 +31,7 @@ |
||
| 31 | 31 | public function description(): string |
| 32 | 32 | { |
| 33 | 33 | |
| 34 | - return (string)$this->_extraArgs['PerformanceDescription']; |
|
| 34 | + return (string) $this->_extraArgs['PerformanceDescription']; |
|
| 35 | 35 | |
| 36 | 36 | } |
| 37 | 37 | |
@@ -15,13 +15,13 @@ |
||
| 15 | 15 | |
| 16 | 16 | public function zoneId() : int { |
| 17 | 17 | |
| 18 | - return intval( $this->_extraArgs['ZoneId'] ); |
|
| 18 | + return intval($this->_extraArgs['ZoneId']); |
|
| 19 | 19 | |
| 20 | 20 | } |
| 21 | 21 | |
| 22 | 22 | public function enabled(): bool |
| 23 | 23 | { |
| 24 | - return (bool)$this->_extraArgs['Enabled']; |
|
| 24 | + return (bool) $this->_extraArgs['Enabled']; |
|
| 25 | 25 | } |
| 26 | 26 | |
| 27 | 27 | public function performanceId(): int |
@@ -11,7 +11,7 @@ discard block |
||
| 11 | 11 | try { |
| 12 | 12 | $timezone = new DateTimeZone($timezone); |
| 13 | 13 | |
| 14 | - if(isset($this->extraArgs()['CreatedDateTime'])) { |
|
| 14 | + if (isset($this->extraArgs()['CreatedDateTime'])) { |
|
| 15 | 15 | try { |
| 16 | 16 | return new DateTime($this->extraArgs()['CreatedDateTime'], $timezone); |
| 17 | 17 | } catch (\Exception $e) { |
@@ -27,7 +27,7 @@ discard block |
||
| 27 | 27 | |
| 28 | 28 | public function description(): string |
| 29 | 29 | { |
| 30 | - return (string)$this->extraArgs()['Description']; |
|
| 30 | + return (string) $this->extraArgs()['Description']; |
|
| 31 | 31 | } |
| 32 | 32 | |
| 33 | 33 | public function endDateTime(string $timezone = 'America/New_York') : ?DateTime |
@@ -35,9 +35,9 @@ discard block |
||
| 35 | 35 | try { |
| 36 | 36 | $timezone = new DateTimeZone($timezone); |
| 37 | 37 | |
| 38 | - if(isset( $this->extraArgs()['EndDateTime'])) { |
|
| 38 | + if (isset($this->extraArgs()['EndDateTime'])) { |
|
| 39 | 39 | try { |
| 40 | - return new \DateTime( $this->extraArgs()['EndDateTime'], $timezone ); |
|
| 40 | + return new \DateTime($this->extraArgs()['EndDateTime'], $timezone); |
|
| 41 | 41 | } catch (\Exception $exception) { |
| 42 | 42 | trigger_error($exception->getMessage(), E_USER_WARNING); |
| 43 | 43 | } |
@@ -61,7 +61,7 @@ discard block |
||
| 61 | 61 | |
| 62 | 62 | if (isset($this->extraArgs()['StartDateTime'])) { |
| 63 | 63 | try { |
| 64 | - return new \DateTime( $this->extraArgs()['StartDateTime'], $timezone ); |
|
| 64 | + return new \DateTime($this->extraArgs()['StartDateTime'], $timezone); |
|
| 65 | 65 | } catch (\Exception $e) { |
| 66 | 66 | trigger_error($e->getMessage(), E_USER_WARNING); |
| 67 | 67 | } |
@@ -228,7 +228,7 @@ discard block |
||
| 228 | 228 | * @return Exception|mixed[] |
| 229 | 229 | * @throws GuzzleException |
| 230 | 230 | */ |
| 231 | - public function post(string $endpoint, array $args = []): array|Exception |
|
| 231 | + public function post(string $endpoint, array $args = []): array | Exception |
|
| 232 | 232 | { |
| 233 | 233 | |
| 234 | 234 | $args = array_merge($args, array( |
@@ -256,7 +256,7 @@ discard block |
||
| 256 | 256 | 'log' => 'tessitura', |
| 257 | 257 | )); |
| 258 | 258 | |
| 259 | - $message = 'Tessitura API: ' . $message; |
|
| 259 | + $message = 'Tessitura API: '.$message; |
|
| 260 | 260 | |
| 261 | 261 | if ($this->getLogger()) { |
| 262 | 262 | $this->getLogger()->info($message, $args); |