Passed
Push — main ( 3bd1e6...f3fb2f )
by Daryl
02:49
created
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/Base/Container.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -100,7 +100,7 @@
 block discarded – undo
100 100
      */
101 101
     public function has(string $id): bool
102 102
     {
103
-        return isset($this->services[$id]) || method_exists($this, 'create' . ucfirst($id));
103
+        return isset($this->services[$id]) || method_exists($this, 'create'.ucfirst($id));
104 104
     }
105 105
 
106 106
     /**
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 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
 }
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
@@ -30,7 +30,7 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
src/Resources/PriceSummary.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
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
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
@@ -48,7 +48,7 @@
 block discarded – undo
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) {
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
@@ -28,7 +28,7 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
src/Resources/ProductionSeason.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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);
Please login to merge, or discard this patch.
src/Base/Base.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
         // This helps encourage developers to use explicit getter methods
74 74
         $commonMethods = ['id', 'name', 'description'];
75 75
         if (in_array(strtolower($name), $commonMethods)) {
76
-            $methodName = 'get' . ucfirst($name);
76
+            $methodName = 'get'.ucfirst($name);
77 77
             trigger_error(
78 78
                 "Magic method $name() is deprecated. Use explicit method $methodName() instead.",
79 79
                 E_USER_DEPRECATED
@@ -140,7 +140,7 @@  discard block
 block discarded – undo
140 140
     {
141 141
         $name = $this->extraArgs()['name'] ?? '';
142 142
 
143
-        return (string)$name;
143
+        return (string) $name;
144 144
     }
145 145
 
146 146
     /**
@@ -152,6 +152,6 @@  discard block
 block discarded – undo
152 152
     {
153 153
         $description = $this->extraArgs()['description'] ?? '';
154 154
 
155
-        return (string)$description;
155
+        return (string) $description;
156 156
     }
157 157
 }
Please login to merge, or discard this patch.