@@ -353,7 +353,7 @@ |
||
| 353 | 353 | * @see \InShore\Bookwhen\Interfaces\ClientInterface::getTicket() |
| 354 | 354 | */ |
| 355 | 355 | public function getTicket($ticketId) |
| 356 | - { |
|
| 356 | + { |
|
| 357 | 357 | if (!$this->validator->validId($ticketId, 'ticket')) { |
| 358 | 358 | throw new ValidationException('ticketId', $ticketId); |
| 359 | 359 | } |
@@ -345,9 +345,9 @@ discard block |
||
| 345 | 345 | } |
| 346 | 346 | } |
| 347 | 347 | |
| 348 | - // Validate $includeTicketsEvents; |
|
| 348 | + // Validate $includeTicketsEvents; |
|
| 349 | 349 | |
| 350 | - if (!empty($includeTicketsEvents)) { |
|
| 350 | + if (!empty($includeTicketsEvents)) { |
|
| 351 | 351 | if (!$this->validator->validInclude($includeTicketsEvents)) { |
| 352 | 352 | throw new ValidationException('include', $includeTicketsEvents); |
| 353 | 353 | } else { |
@@ -355,9 +355,9 @@ discard block |
||
| 355 | 355 | } |
| 356 | 356 | } |
| 357 | 357 | |
| 358 | - // Validate $includeTicketsEvents; |
|
| 358 | + // Validate $includeTicketsEvents; |
|
| 359 | 359 | |
| 360 | - if (!empty($includeTicketsClassPasses)) { |
|
| 360 | + if (!empty($includeTicketsClassPasses)) { |
|
| 361 | 361 | if (!$this->validator->validInclude($includeTicketsClassPasses)) { |
| 362 | 362 | throw new ValidationException('include', $includeTicketsClassPasses); |
| 363 | 363 | } else { |
@@ -32,7 +32,7 @@ |
||
| 32 | 32 | * |
| 33 | 33 | * @return string |
| 34 | 34 | */ |
| 35 | - public function errorMessage() |
|
| 35 | + public function errorMessage() |
|
| 36 | 36 | { |
| 37 | 37 | return 'Validation Error!<br/>The value "' . $this->value . '" is invalid for ' . $this->key . '.<br/>Please refer to the package documentation <a href=https://github.com/inshore/bookwhen>https://github.com/inshore/bookwhen</a> or <a href=https://api.bookwhen.com/v2>https://api.bookwhen.com/v2</a>'; |
| 38 | 38 | } |