Passed
Pull Request — main (#7)
by
unknown
02:18
created
src/Resources/ProductionSeason.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
     /**
26 26
      * @throws InvalidArgumentException
27 27
      */
28
-    public function first_performance_date(string $timezone = 'America/New_York'): DateTime|bool
28
+    public function first_performance_date(string $timezone = 'America/New_York'): DateTime | bool
29 29
     {
30 30
         try {
31 31
             $timezone = new DateTimeZone($timezone);
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
     /**
48 48
      * @throws InvalidArgumentException
49 49
      */
50
-    public function last_performance_date(string $timezone = 'America/New_York'): DateTime|bool
50
+    public function last_performance_date(string $timezone = 'America/New_York'): DateTime | bool
51 51
     {
52 52
         try {
53 53
             $timezone = new DateTimeZone($timezone);
Please login to merge, or discard this patch.
src/Resources/Seasons.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@
 block discarded – undo
50 50
             $response = $this->client->get(self::RESOURCE);
51 51
             $data     = json_decode($response->getBody()->getContents(), true);
52 52
 
53
-            return array_map( function(array $season) {
53
+            return array_map(function(array $season) {
54 54
                 return new Season($season);
55 55
             }, $data);
56 56
         } catch (GuzzleException $e) {
Please login to merge, or discard this patch.
src/Interfaces/RequestHandlerInterface.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,5 +23,5 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
src/Resources/Performances.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Resources/Performance.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Resources/PriceSummary.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -15,13 +15,13 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
src/Helpers/Api.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -228,7 +228,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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);
Please login to merge, or discard this patch.
src/Resources/Season.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
 
27 27
     public function getDescription(): string
28 28
     {
29
-        return (string)$this->extraArgs()['Description'];
29
+        return (string) $this->extraArgs()['Description'];
30 30
     }
31 31
 
32 32
     public function getEndDateTime(string $timezone = 'America/New_York') : ?DateTime
Please login to merge, or discard this patch.