@@ -25,7 +25,7 @@ discard block |
||
| 25 | 25 | /** @var array{object: string, data: array<int, 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 */ |
| 26 | 26 | $result = $this->transporter->requestObject($payload); |
| 27 | 27 | |
| 28 | - if(!array_key_exists('included', $result)) { |
|
| 28 | + if (!array_key_exists('included', $result)) { |
|
| 29 | 29 | return ListResponse::from($result); |
| 30 | 30 | } else { |
| 31 | 31 | return ListResponse::from($result, $result['included']); |
@@ -44,7 +44,7 @@ discard block |
||
| 44 | 44 | /** @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 */ |
| 45 | 45 | $result = $this->transporter->requestObject($payload); |
| 46 | 46 | |
| 47 | - if(!array_key_exists('included', $result)) { |
|
| 47 | + if (!array_key_exists('included', $result)) { |
|
| 48 | 48 | return RetrieveResponse::from($result['data']); |
| 49 | 49 | } else { |
| 50 | 50 | return RetrieveResponse::from($result['data'], $result['included']); |
@@ -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']); |
@@ -276,7 +276,7 @@ discard block |
||
| 276 | 276 | if (!$this->validator->validInclude($includeAttachments)) { |
| 277 | 277 | throw new ValidationException('includeAttachments', $includeAttachments); |
| 278 | 278 | } else { |
| 279 | - if($includeAttachments) { |
|
| 279 | + if ($includeAttachments) { |
|
| 280 | 280 | array_push($this->includes, 'attachments'); |
| 281 | 281 | } |
| 282 | 282 | } |
@@ -285,7 +285,7 @@ discard block |
||
| 285 | 285 | if (!$this->validator->validInclude($includeLocation)) { |
| 286 | 286 | throw new ValidationException('includeLocation', $includeLocation); |
| 287 | 287 | } else { |
| 288 | - if($includeLocation) { |
|
| 288 | + if ($includeLocation) { |
|
| 289 | 289 | array_push($this->includes, 'location'); |
| 290 | 290 | } |
| 291 | 291 | } |
@@ -294,7 +294,7 @@ discard block |
||
| 294 | 294 | if (!$this->validator->validInclude($includeTickets)) { |
| 295 | 295 | throw new ValidationException('includeTickets', $includeTickets); |
| 296 | 296 | } else { |
| 297 | - if($includeTickets) { |
|
| 297 | + if ($includeTickets) { |
|
| 298 | 298 | array_push($this->includes, 'tickets'); |
| 299 | 299 | } |
| 300 | 300 | } |
@@ -303,7 +303,7 @@ discard block |
||
| 303 | 303 | if (!$this->validator->validInclude($includeTicketsEvents)) { |
| 304 | 304 | throw new ValidationException('includeTicketsEvents', $includeTicketsEvents); |
| 305 | 305 | } else { |
| 306 | - if($includeTicketsEvents) { |
|
| 306 | + if ($includeTicketsEvents) { |
|
| 307 | 307 | array_push($this->includes, 'tickets.events'); |
| 308 | 308 | } |
| 309 | 309 | } |
@@ -312,7 +312,7 @@ discard block |
||
| 312 | 312 | if (!$this->validator->validInclude($includeTicketsClassPasses)) { |
| 313 | 313 | throw new ValidationException('includeTicketsClassPasses', $includeTicketsClassPasses); |
| 314 | 314 | } else { |
| 315 | - if($includeTicketsClassPasses) { |
|
| 315 | + if ($includeTicketsClassPasses) { |
|
| 316 | 316 | array_push($this->includes, 'tickets.class_passes'); |
| 317 | 317 | } |
| 318 | 318 | } |
@@ -338,7 +338,7 @@ discard block |
||
| 338 | 338 | |
| 339 | 339 | // eventTickets |
| 340 | 340 | $eventTickets = []; |
| 341 | - foreach($event->tickets as $ticket) { |
|
| 341 | + foreach ($event->tickets as $ticket) { |
|
| 342 | 342 | array_push($eventTickets, new Ticket( |
| 343 | 343 | $ticket->available, |
| 344 | 344 | $ticket->availableFrom, |
@@ -420,7 +420,7 @@ discard block |
||
| 420 | 420 | throw new ValidationException('detail', implode(' ', $detail)); |
| 421 | 421 | } else { |
| 422 | 422 | $detail = array_unique($detail); |
| 423 | - foreach($detail as $item) { |
|
| 423 | + foreach ($detail as $item) { |
|
| 424 | 424 | if (!$this->validator->validLocation($item)) { |
| 425 | 425 | throw new ValidationException('detail', $item); |
| 426 | 426 | } |
@@ -447,7 +447,7 @@ discard block |
||
| 447 | 447 | throw new ValidationException('location', implode(' ', $title)); |
| 448 | 448 | } else { |
| 449 | 449 | $location = array_unique($location); |
| 450 | - foreach($location as $item) { |
|
| 450 | + foreach ($location as $item) { |
|
| 451 | 451 | if (!$this->validator->validLocation($item)) { |
| 452 | 452 | throw new ValidationException('location', $item); |
| 453 | 453 | } |
@@ -477,7 +477,7 @@ discard block |
||
| 477 | 477 | throw new ValidationException('title', implode(' ', $title)); |
| 478 | 478 | } else { |
| 479 | 479 | $title = array_unique($title); |
| 480 | - foreach($title as $item) { |
|
| 480 | + foreach ($title as $item) { |
|
| 481 | 481 | if (!$this->validator->validTitle($item)) { |
| 482 | 482 | throw new ValidationException('title', $item); |
| 483 | 483 | } |
@@ -499,7 +499,7 @@ discard block |
||
| 499 | 499 | if (!$this->validator->validInclude($includeAttachments)) { |
| 500 | 500 | throw new ValidationException('includeAttachments', $includeAttachments); |
| 501 | 501 | } else { |
| 502 | - if($includeAttachments) { |
|
| 502 | + if ($includeAttachments) { |
|
| 503 | 503 | array_push($this->includes, 'attachments'); |
| 504 | 504 | } |
| 505 | 505 | } |
@@ -508,7 +508,7 @@ discard block |
||
| 508 | 508 | if (!$this->validator->validInclude($includeLocation)) { |
| 509 | 509 | throw new ValidationException('includeLocation', $includeLocation); |
| 510 | 510 | } else { |
| 511 | - if($includeLocation) { |
|
| 511 | + if ($includeLocation) { |
|
| 512 | 512 | array_push($this->includes, 'location'); |
| 513 | 513 | } |
| 514 | 514 | } |
@@ -517,7 +517,7 @@ discard block |
||
| 517 | 517 | if (!$this->validator->validInclude($includeTickets)) { |
| 518 | 518 | throw new ValidationException('includeTickets', $includeTickets); |
| 519 | 519 | } else { |
| 520 | - if($includeTickets) { |
|
| 520 | + if ($includeTickets) { |
|
| 521 | 521 | array_push($this->includes, 'tickets'); |
| 522 | 522 | } |
| 523 | 523 | } |
@@ -526,7 +526,7 @@ discard block |
||
| 526 | 526 | if (!$this->validator->validInclude($includeTicketsEvents)) { |
| 527 | 527 | throw new ValidationException('includeTicketsEvents', $includeTicketsEvents); |
| 528 | 528 | } else { |
| 529 | - if($includeTicketsEvents) { |
|
| 529 | + if ($includeTicketsEvents) { |
|
| 530 | 530 | array_push($this->includes, 'tickets.events'); |
| 531 | 531 | } |
| 532 | 532 | } |
@@ -535,7 +535,7 @@ discard block |
||
| 535 | 535 | if (!$this->validator->validInclude($includeTicketsClassPasses)) { |
| 536 | 536 | throw new ValidationException('includeTicketsClassPasses', $includeTicketsClassPasses); |
| 537 | 537 | } else { |
| 538 | - if($includeTicketsClassPasses) { |
|
| 538 | + if ($includeTicketsClassPasses) { |
|
| 539 | 539 | array_push($this->includes, 'tickets.class_passes'); |
| 540 | 540 | } |
| 541 | 541 | } |
@@ -545,7 +545,7 @@ discard block |
||
| 545 | 545 | foreach ($events->data as $event) { |
| 546 | 546 | |
| 547 | 547 | $eventTickets = []; |
| 548 | - foreach($event->tickets as $ticket) { |
|
| 548 | + foreach ($event->tickets as $ticket) { |
|
| 549 | 549 | array_push($eventTickets, new Ticket( |
| 550 | 550 | $ticket->available, |
| 551 | 551 | $ticket->availableFrom, |
@@ -703,7 +703,7 @@ discard block |
||
| 703 | 703 | if (!$this->validator->validInclude($includeClassPasses)) { |
| 704 | 704 | throw new ValidationException('includeClassPasses', $includeClassPasses); |
| 705 | 705 | } else { |
| 706 | - if($includeClassPasses) { |
|
| 706 | + if ($includeClassPasses) { |
|
| 707 | 707 | array_push($this->includes, 'class_passes'); |
| 708 | 708 | } |
| 709 | 709 | } |
@@ -712,7 +712,7 @@ discard block |
||
| 712 | 712 | if (!$this->validator->validInclude($includeEvents)) { |
| 713 | 713 | throw new ValidationException('includeEvents', $includeEvents); |
| 714 | 714 | } else { |
| 715 | - if($includeEvents) { |
|
| 715 | + if ($includeEvents) { |
|
| 716 | 716 | array_push($this->includes, 'events'); |
| 717 | 717 | } |
| 718 | 718 | } |
@@ -721,7 +721,7 @@ discard block |
||
| 721 | 721 | if (!$this->validator->validInclude($includeEventsAttachments)) { |
| 722 | 722 | throw new ValidationException('includeEventssAttachments', $includeEventsAttachments); |
| 723 | 723 | } else { |
| 724 | - if($includeEventsAttachments) { |
|
| 724 | + if ($includeEventsAttachments) { |
|
| 725 | 725 | array_push($this->includes, 'events.attachments'); |
| 726 | 726 | } |
| 727 | 727 | } |
@@ -730,7 +730,7 @@ discard block |
||
| 730 | 730 | if (!$this->validator->validInclude($includeEventsLocation)) { |
| 731 | 731 | throw new ValidationException('includeEventsLocation', $includeEventsLocation); |
| 732 | 732 | } else { |
| 733 | - if($includeEventsLocation) { |
|
| 733 | + if ($includeEventsLocation) { |
|
| 734 | 734 | array_push($this->includes, 'events.location'); |
| 735 | 735 | } |
| 736 | 736 | } |
@@ -739,7 +739,7 @@ discard block |
||
| 739 | 739 | if (!$this->validator->validInclude($includeEventsTickets)) { |
| 740 | 740 | throw new ValidationException('includeEventsTickets', $includeEventsTickets); |
| 741 | 741 | } else { |
| 742 | - if($includeEventsTickets) { |
|
| 742 | + if ($includeEventsTickets) { |
|
| 743 | 743 | array_push($this->includes, 'events.tickets'); |
| 744 | 744 | } |
| 745 | 745 | } |
@@ -787,7 +787,7 @@ discard block |
||
| 787 | 787 | if (!$this->validator->validInclude($includeClassPasses)) { |
| 788 | 788 | throw new ValidationException('includeClassPasses', $includeClassPasses); |
| 789 | 789 | } else { |
| 790 | - if($includeClassPasses) { |
|
| 790 | + if ($includeClassPasses) { |
|
| 791 | 791 | array_push($this->includes, 'class_passes'); |
| 792 | 792 | } |
| 793 | 793 | } |
@@ -796,7 +796,7 @@ discard block |
||
| 796 | 796 | if (!$this->validator->validInclude($includeEvents)) { |
| 797 | 797 | throw new ValidationException('includeEvents', $includeEvents); |
| 798 | 798 | } else { |
| 799 | - if($includeEvents) { |
|
| 799 | + if ($includeEvents) { |
|
| 800 | 800 | array_push($this->includes, 'events'); |
| 801 | 801 | } |
| 802 | 802 | } |
@@ -805,7 +805,7 @@ discard block |
||
| 805 | 805 | if (!$this->validator->validInclude($includeEventsAttachments)) { |
| 806 | 806 | throw new ValidationException('includeAttachments', $includeEventsAttachments); |
| 807 | 807 | } else { |
| 808 | - if($includeEventsAttachments) { |
|
| 808 | + if ($includeEventsAttachments) { |
|
| 809 | 809 | array_push($this->includes, 'events.attachments'); |
| 810 | 810 | } |
| 811 | 811 | } |
@@ -814,7 +814,7 @@ discard block |
||
| 814 | 814 | if (!$this->validator->validInclude($includeEventsLocation)) { |
| 815 | 815 | throw new ValidationException('includeEventsLocation', $includeEventsLocation); |
| 816 | 816 | } else { |
| 817 | - if($includeEventsLocation) { |
|
| 817 | + if ($includeEventsLocation) { |
|
| 818 | 818 | array_push($this->includes, 'events.location'); |
| 819 | 819 | } |
| 820 | 820 | } |
@@ -823,7 +823,7 @@ discard block |
||
| 823 | 823 | if (!$this->validator->validInclude($includeEventsTickets)) { |
| 824 | 824 | throw new ValidationException('includeEventsTickets', $includeEventsTickets); |
| 825 | 825 | } else { |
| 826 | - if($includeEventsTickets) { |
|
| 826 | + if ($includeEventsTickets) { |
|
| 827 | 827 | array_push($this->includes, 'events.tickets'); |
| 828 | 828 | } |
| 829 | 829 | } |