Passed
Pull Request — main (#3)
by Daryl
02:28
created
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/Resources/Season.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
                 }
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.