@@ -299,7 +299,7 @@ discard block |
||
| 299 | 299 | throw new ValidationException('includeAttachments', $includeAttachments); |
| 300 | 300 | } |
| 301 | 301 | |
| 302 | - if($includeAttachments) { |
|
| 302 | + if ($includeAttachments) { |
|
| 303 | 303 | array_push($this->includes, 'attachments'); |
| 304 | 304 | } |
| 305 | 305 | |
@@ -307,7 +307,7 @@ discard block |
||
| 307 | 307 | if (!$this->validator->validInclude($includeLocation)) { |
| 308 | 308 | throw new ValidationException('includeLocation', $includeLocation); |
| 309 | 309 | } |
| 310 | - if($includeLocation) { |
|
| 310 | + if ($includeLocation) { |
|
| 311 | 311 | array_push($this->includes, 'location'); |
| 312 | 312 | } |
| 313 | 313 | |
@@ -316,7 +316,7 @@ discard block |
||
| 316 | 316 | throw new ValidationException('includeTickets', $includeTickets); |
| 317 | 317 | } |
| 318 | 318 | |
| 319 | - if($includeTickets) { |
|
| 319 | + if ($includeTickets) { |
|
| 320 | 320 | array_push($this->includes, 'tickets'); |
| 321 | 321 | } |
| 322 | 322 | |
@@ -325,7 +325,7 @@ discard block |
||
| 325 | 325 | throw new ValidationException('includeTicketsEvents', $includeTicketsEvents); |
| 326 | 326 | } |
| 327 | 327 | |
| 328 | - if($includeTicketsEvents) { |
|
| 328 | + if ($includeTicketsEvents) { |
|
| 329 | 329 | array_push($this->includes, 'tickets.events'); |
| 330 | 330 | } |
| 331 | 331 | |
@@ -334,7 +334,7 @@ discard block |
||
| 334 | 334 | throw new ValidationException('includeTicketsClassPasses', $includeTicketsClassPasses); |
| 335 | 335 | } |
| 336 | 336 | |
| 337 | - if($includeTicketsClassPasses) { |
|
| 337 | + if ($includeTicketsClassPasses) { |
|
| 338 | 338 | array_push($this->includes, 'tickets.class_passes'); |
| 339 | 339 | } |
| 340 | 340 | |
@@ -359,7 +359,7 @@ discard block |
||
| 359 | 359 | |
| 360 | 360 | // eventTickets |
| 361 | 361 | $eventTickets = []; |
| 362 | - foreach($event->tickets as $ticket) { |
|
| 362 | + foreach ($event->tickets as $ticket) { |
|
| 363 | 363 | array_push($eventTickets, new Ticket( |
| 364 | 364 | $ticket->available, |
| 365 | 365 | $ticket->availableFrom, |
@@ -441,7 +441,7 @@ discard block |
||
| 441 | 441 | throw new ValidationException('detail', implode(' ', $detail)); |
| 442 | 442 | } else { |
| 443 | 443 | $detail = array_unique($detail); |
| 444 | - foreach($detail as $item) { |
|
| 444 | + foreach ($detail as $item) { |
|
| 445 | 445 | if (!$this->validator->validLocation($item)) { |
| 446 | 446 | throw new ValidationException('detail', $item); |
| 447 | 447 | } |
@@ -468,7 +468,7 @@ discard block |
||
| 468 | 468 | throw new ValidationException('location', implode(' ', $title)); |
| 469 | 469 | } else { |
| 470 | 470 | $location = array_unique($location); |
| 471 | - foreach($location as $item) { |
|
| 471 | + foreach ($location as $item) { |
|
| 472 | 472 | if (!$this->validator->validLocation($item)) { |
| 473 | 473 | throw new ValidationException('location', $item); |
| 474 | 474 | } |
@@ -498,7 +498,7 @@ discard block |
||
| 498 | 498 | throw new ValidationException('title', implode(' ', $title)); |
| 499 | 499 | } else { |
| 500 | 500 | $title = array_unique($title); |
| 501 | - foreach($title as $item) { |
|
| 501 | + foreach ($title as $item) { |
|
| 502 | 502 | if (!$this->validator->validTitle($item)) { |
| 503 | 503 | throw new ValidationException('title', $item); |
| 504 | 504 | } |
@@ -520,7 +520,7 @@ discard block |
||
| 520 | 520 | if (!$this->validator->validInclude($includeLocation)) { |
| 521 | 521 | throw new ValidationException('includeLocation', $includeLocation); |
| 522 | 522 | } |
| 523 | - if($includeLocation) { |
|
| 523 | + if ($includeLocation) { |
|
| 524 | 524 | array_push($this->includes, 'location'); |
| 525 | 525 | } |
| 526 | 526 | |
@@ -529,7 +529,7 @@ discard block |
||
| 529 | 529 | throw new ValidationException('includeTickets', $includeTickets); |
| 530 | 530 | } |
| 531 | 531 | |
| 532 | - if($includeTickets) { |
|
| 532 | + if ($includeTickets) { |
|
| 533 | 533 | array_push($this->includes, 'tickets'); |
| 534 | 534 | } |
| 535 | 535 | |
@@ -538,7 +538,7 @@ discard block |
||
| 538 | 538 | throw new ValidationException('includeTicketsEvents', $includeTicketsEvents); |
| 539 | 539 | } |
| 540 | 540 | |
| 541 | - if($includeTicketsEvents) { |
|
| 541 | + if ($includeTicketsEvents) { |
|
| 542 | 542 | array_push($this->includes, 'tickets.events'); |
| 543 | 543 | } |
| 544 | 544 | |
@@ -547,7 +547,7 @@ discard block |
||
| 547 | 547 | throw new ValidationException('includeTicketsClassPasses', $includeTicketsClassPasses); |
| 548 | 548 | } |
| 549 | 549 | |
| 550 | - if($includeTicketsClassPasses) { |
|
| 550 | + if ($includeTicketsClassPasses) { |
|
| 551 | 551 | array_push($this->includes, 'tickets.class_passes'); |
| 552 | 552 | } |
| 553 | 553 | |
@@ -556,7 +556,7 @@ discard block |
||
| 556 | 556 | foreach ($events->data as $event) { |
| 557 | 557 | |
| 558 | 558 | $eventTickets = []; |
| 559 | - foreach($event->tickets as $ticket) { |
|
| 559 | + foreach ($event->tickets as $ticket) { |
|
| 560 | 560 | array_push($eventTickets, new Ticket( |
| 561 | 561 | $ticket->available, |
| 562 | 562 | $ticket->availableFrom, |
@@ -703,7 +703,7 @@ discard block |
||
| 703 | 703 | throw new ValidationException('includeClassPasses', $includeClassPasses); |
| 704 | 704 | } |
| 705 | 705 | |
| 706 | - if($includeClassPasses) { |
|
| 706 | + if ($includeClassPasses) { |
|
| 707 | 707 | array_push($this->includes, 'class_passes'); |
| 708 | 708 | } |
| 709 | 709 | |
@@ -711,7 +711,7 @@ discard block |
||
| 711 | 711 | if (!$this->validator->validInclude($includeEvents)) { |
| 712 | 712 | throw new ValidationException('includeEvents', $includeEvents); |
| 713 | 713 | } |
| 714 | - if($includeEvents) { |
|
| 714 | + if ($includeEvents) { |
|
| 715 | 715 | array_push($this->includes, 'events'); |
| 716 | 716 | } |
| 717 | 717 | |
@@ -719,7 +719,7 @@ discard block |
||
| 719 | 719 | if (!$this->validator->validInclude($includeEventsAttachments)) { |
| 720 | 720 | throw new ValidationException('includeEventssAttachments', $includeEventsAttachments); |
| 721 | 721 | } |
| 722 | - if($includeEventsAttachments) { |
|
| 722 | + if ($includeEventsAttachments) { |
|
| 723 | 723 | array_push($this->includes, 'events.attachments'); |
| 724 | 724 | } |
| 725 | 725 | |
@@ -727,7 +727,7 @@ discard block |
||
| 727 | 727 | if (!$this->validator->validInclude($includeEventsLocation)) { |
| 728 | 728 | throw new ValidationException('includeEventsLocation', $includeEventsLocation); |
| 729 | 729 | } |
| 730 | - if($includeEventsLocation) { |
|
| 730 | + if ($includeEventsLocation) { |
|
| 731 | 731 | array_push($this->includes, 'events.location'); |
| 732 | 732 | } |
| 733 | 733 | |
@@ -735,7 +735,7 @@ discard block |
||
| 735 | 735 | if (!$this->validator->validInclude($includeEventsTickets)) { |
| 736 | 736 | throw new ValidationException('includeEventsTickets', $includeEventsTickets); |
| 737 | 737 | } |
| 738 | - if($includeEventsTickets) { |
|
| 738 | + if ($includeEventsTickets) { |
|
| 739 | 739 | array_push($this->includes, 'events.tickets'); |
| 740 | 740 | } |
| 741 | 741 | |
@@ -784,7 +784,7 @@ discard block |
||
| 784 | 784 | throw new ValidationException('includeClassPasses', $includeClassPasses); |
| 785 | 785 | } |
| 786 | 786 | |
| 787 | - if($includeClassPasses) { |
|
| 787 | + if ($includeClassPasses) { |
|
| 788 | 788 | array_push($this->includes, 'class_passes'); |
| 789 | 789 | } |
| 790 | 790 | |
@@ -793,7 +793,7 @@ discard block |
||
| 793 | 793 | throw new ValidationException('includeEvents', $includeEvents); |
| 794 | 794 | } |
| 795 | 795 | |
| 796 | - if($includeEvents) { |
|
| 796 | + if ($includeEvents) { |
|
| 797 | 797 | array_push($this->includes, 'events'); |
| 798 | 798 | } |
| 799 | 799 | |
@@ -802,7 +802,7 @@ discard block |
||
| 802 | 802 | throw new ValidationException('includeEventssAttachments', $includeEventsAttachments); |
| 803 | 803 | } |
| 804 | 804 | |
| 805 | - if($includeEventsAttachments) { |
|
| 805 | + if ($includeEventsAttachments) { |
|
| 806 | 806 | array_push($this->includes, 'events.attachments'); |
| 807 | 807 | } |
| 808 | 808 | |
@@ -811,7 +811,7 @@ discard block |
||
| 811 | 811 | throw new ValidationException('includeEventsLocation', $includeEventsLocation); |
| 812 | 812 | } |
| 813 | 813 | |
| 814 | - if($includeEventsLocation) { |
|
| 814 | + if ($includeEventsLocation) { |
|
| 815 | 815 | array_push($this->includes, 'events.location'); |
| 816 | 816 | } |
| 817 | 817 | |
@@ -820,7 +820,7 @@ discard block |
||
| 820 | 820 | throw new ValidationException('includeEventsTickets', $includeEventsTickets); |
| 821 | 821 | } |
| 822 | 822 | |
| 823 | - if($includeEventsTickets) { |
|
| 823 | + if ($includeEventsTickets) { |
|
| 824 | 824 | array_push($this->includes, 'events.tickets'); |
| 825 | 825 | } |
| 826 | 826 | |
@@ -62,7 +62,7 @@ |
||
| 62 | 62 | { |
| 63 | 63 | |
| 64 | 64 | $cost = new \stdClass(); |
| 65 | - if(!empty($attributes['attributes']['cost'])) { |
|
| 65 | + if (!empty($attributes['attributes']['cost'])) { |
|
| 66 | 66 | $cost->currencyCode = $attributes['attributes']['cost']['currency_code']; |
| 67 | 67 | $cost->net = $attributes['attributes']['cost']['net']; |
| 68 | 68 | $cost->tax = $attributes['attributes']['cost']['tax']; |