@@ -53,7 +53,6 @@ discard block |
||
| 53 | 53 | } |
| 54 | 54 | |
| 55 | 55 | /** |
| 56 | - |
|
| 57 | 56 | */ |
| 58 | 57 | public function classPasses(): ClassPasses |
| 59 | 58 | { |
@@ -66,16 +65,14 @@ discard block |
||
| 66 | 65 | { |
| 67 | 66 | return new Events($this->transporter); |
| 68 | 67 | } |
| 69 | - /** |
|
| 70 | - |
|
| 71 | - */ |
|
| 68 | + /** |
|
| 69 | + */ |
|
| 72 | 70 | public function locations(): Locations |
| 73 | 71 | { |
| 74 | 72 | return new Locations($this->transporter); |
| 75 | 73 | } |
| 76 | 74 | /** |
| 77 | - |
|
| 78 | - */ |
|
| 75 | + */ |
|
| 79 | 76 | public function tickets(): Tickets |
| 80 | 77 | { |
| 81 | 78 | return new Tickets($this->transporter); |
@@ -40,7 +40,7 @@ |
||
| 40 | 40 | /** @var array{id: string, object: string, created_at: int, bytes: int, filename: string, purpose: string, status: string, status_details: array<array-key, mixed>|string|null} $result */ |
| 41 | 41 | $result = $this->transporter->requestObject($payload); |
| 42 | 42 | |
| 43 | - if(!array_key_exists('included', $result)) { |
|
| 43 | + if (!array_key_exists('included', $result)) { |
|
| 44 | 44 | return RetrieveResponse::from($result['data']); |
| 45 | 45 | } else { |
| 46 | 46 | return RetrieveResponse::from($result['data'], $result['included']); |
@@ -65,7 +65,7 @@ discard block |
||
| 65 | 65 | { |
| 66 | 66 | $exploded = explode('-', $classPassId); |
| 67 | 67 | |
| 68 | - if (2 !==count($exploded)) { |
|
| 68 | + if (2 !== count($exploded)) { |
|
| 69 | 69 | return false; |
| 70 | 70 | } |
| 71 | 71 | |
@@ -113,7 +113,7 @@ discard block |
||
| 113 | 113 | { |
| 114 | 114 | $exploded = explode('-', $eventId); |
| 115 | 115 | |
| 116 | - if (3 !== count($exploded) ) { |
|
| 116 | + if (3 !== count($exploded)) { |
|
| 117 | 117 | return false; |
| 118 | 118 | } |
| 119 | 119 | |
@@ -260,7 +260,7 @@ discard block |
||
| 260 | 260 | |
| 261 | 261 | $exploded = explode('-', $ticketId); |
| 262 | 262 | |
| 263 | - if (4 !== count($exploded) ) { |
|
| 263 | + if (4 !== count($exploded)) { |
|
| 264 | 264 | return false; |
| 265 | 265 | } |
| 266 | 266 | |
@@ -53,8 +53,8 @@ |
||
| 53 | 53 | |
| 54 | 54 | // location |
| 55 | 55 | $locationId = $attributes['relationships']['location']['data']['id']; |
| 56 | - $location = array_reduce($included, function ($data, $includedData) use ($locationId) { |
|
| 57 | - if($includedData['id'] === $locationId) { |
|
| 56 | + $location = array_reduce($included, function($data, $includedData) use ($locationId) { |
|
| 57 | + if ($includedData['id'] === $locationId) { |
|
| 58 | 58 | return LocationsRetrieveResponse::from($includedData); |
| 59 | 59 | } |
| 60 | 60 | return $data; |
@@ -21,7 +21,7 @@ |
||
| 21 | 21 | |
| 22 | 22 | public static function from(string $apiKey): self |
| 23 | 23 | { |
| 24 | - if(empty($apiKey)) { |
|
| 24 | + if (empty($apiKey)) { |
|
| 25 | 25 | throw new \InvalidArgumentException(); |
| 26 | 26 | } |
| 27 | 27 | return new self($apiKey); |