Passed
Pull Request — main (#15)
by
unknown
02:21
created
src/Resources/Performances.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
 
28 28
             return $this->getPerformancesBetween($start, $end);
29 29
         } catch (Exception $e) {
30
-            throw new Exception("Unable to get upcoming performances: " . $e->getMessage());
30
+            throw new Exception("Unable to get upcoming performances: ".$e->getMessage());
31 31
         }
32 32
     }
33 33
 
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
     public function getPerformancesForProductionSeason(int $psId): array
59 59
     {
60 60
         return $this->search([
61
-            'ProductionSeasonIds' => (string)$psId,
61
+            'ProductionSeasonIds' => (string) $psId,
62 62
         ]);
63 63
     }
64 64
 
Please login to merge, or discard this patch.
src/Resources/ProductionSeason.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
     /**
28 28
      * @throws InvalidArgumentException
29 29
      */
30
-    public function first_performance_date(string $timezone = 'America/New_York'): DateTime|bool
30
+    public function first_performance_date(string $timezone = 'America/New_York'): DateTime | bool
31 31
     {
32 32
         try {
33 33
             $timezone = new DateTimeZone($timezone);
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
             try {
40 40
                 return DateTime::createFromFormat(' Y-m-d\TG:i:sp', $date, $timezone);
41 41
             } catch (Exception $e) {
42
-                throw new Exception("Unable to parse FirstPerformanceDate: " . $e->getMessage());
42
+                throw new Exception("Unable to parse FirstPerformanceDate: ".$e->getMessage());
43 43
             }
44 44
         }
45 45
 
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
     /**
50 50
      * @throws InvalidArgumentException
51 51
      */
52
-    public function last_performance_date(string $timezone = 'America/New_York'): DateTime|bool
52
+    public function last_performance_date(string $timezone = 'America/New_York'): DateTime | bool
53 53
     {
54 54
         try {
55 55
             $timezone = new DateTimeZone($timezone);
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
             try {
62 62
                 return DateTime::createFromFormat(' Y-m-d\TG:i:sp', $date, $timezone);
63 63
             } catch (Exception $e) {
64
-                throw new Exception("Unable to parse LastPerformanceDate: " . $e->getMessage());
64
+                throw new Exception("Unable to parse LastPerformanceDate: ".$e->getMessage());
65 65
             }
66 66
         }
67 67
 
Please login to merge, or discard this patch.