Passed
Pull Request — main (#15)
by
unknown
02:23
created
src/Resources/ProductionSeason.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
     /**
29 29
      * @throws InvalidArgumentException
30 30
      */
31
-    public function first_performance_date(string $timezone = 'America/New_York'): DateTime|bool
31
+    public function first_performance_date(string $timezone = 'America/New_York'): DateTime | bool
32 32
     {
33 33
         try {
34 34
             $timezone = new DateTimeZone($timezone);
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
                 }
45 45
                 return $result;
46 46
             } catch (Throwable $e) {
47
-                throw new Exception("Unable to parse FirstPerformanceDate: " . $e->getMessage());
47
+                throw new Exception("Unable to parse FirstPerformanceDate: ".$e->getMessage());
48 48
             }
49 49
         }
50 50
 
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
     /**
55 55
      * @throws InvalidArgumentException
56 56
      */
57
-    public function last_performance_date(string $timezone = 'America/New_York'): DateTime|bool
57
+    public function last_performance_date(string $timezone = 'America/New_York'): DateTime | bool
58 58
     {
59 59
         try {
60 60
             $timezone = new DateTimeZone($timezone);
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
                 }
71 71
                 return $result;
72 72
             } catch (Throwable $e) {
73
-                throw new Exception("Unable to parse LastPerformanceDate: " . $e->getMessage());
73
+                throw new Exception("Unable to parse LastPerformanceDate: ".$e->getMessage());
74 74
             }
75 75
         }
76 76
 
Please login to merge, or discard this patch.
src/Resources/Performances.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
 
29 29
             return $this->getPerformancesBetween($start, $end);
30 30
         } catch (Throwable $e) {
31
-            throw new Exception("Unable to get upcoming performances: " . $e->getMessage());
31
+            throw new Exception("Unable to get upcoming performances: ".$e->getMessage());
32 32
         }
33 33
     }
34 34
 
@@ -59,7 +59,7 @@  discard block
 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.