@@ -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 { |
@@ -91,7 +91,7 @@ discard block |
||
| 91 | 91 | } |
| 92 | 92 | |
| 93 | 93 | $this->logger = new Logger('inShore Bookwhen API'); |
| 94 | - $this->logger->pushHandler(new StreamHandler($this->log, Logger::DEBUG )); |
|
| 94 | + $this->logger->pushHandler(new StreamHandler($this->log, Logger::DEBUG)); |
|
| 95 | 95 | $this->logger->info('Client class successfully instantiated'); |
| 96 | 96 | $this->logger->debug(var_export($this, true)); |
| 97 | 97 | } |
@@ -157,12 +157,12 @@ discard block |
||
| 157 | 157 | throw new ValidationException('title', $title); |
| 158 | 158 | } |
| 159 | 159 | |
| 160 | - if(!is_null($fileName) && !$this->validator->validFileName($fileName)) { |
|
| 160 | + if (!is_null($fileName) && !$this->validator->validFileName($fileName)) { |
|
| 161 | 161 | throw new ValidationException('file name', $fileName); |
| 162 | 162 | } |
| 163 | 163 | |
| 164 | 164 | |
| 165 | - if(!is_null($fileType) && !$this->validator->validFileType($fileType)) { |
|
| 165 | + if (!is_null($fileType) && !$this->validator->validFileType($fileType)) { |
|
| 166 | 166 | throw new ValidationException('file type', $fileType); |
| 167 | 167 | } |
| 168 | 168 | |
@@ -317,7 +317,7 @@ discard block |
||
| 317 | 317 | // Validate $includeLocation; |
| 318 | 318 | |
| 319 | 319 | if (!empty($includeLocation)) { |
| 320 | - if(!$this->validator->validInclude($includeLocation)) { |
|
| 320 | + if (!$this->validator->validInclude($includeLocation)) { |
|
| 321 | 321 | throw new ValidationException('include', $includeLocation); |
| 322 | 322 | } else { |
| 323 | 323 | $include[] = 'location'; |
@@ -328,7 +328,7 @@ discard block |
||
| 328 | 328 | |
| 329 | 329 | |
| 330 | 330 | if (!empty($includeAttachments)) { |
| 331 | - if(!$this->validator->validInclude($includeAttachments)) { |
|
| 331 | + if (!$this->validator->validInclude($includeAttachments)) { |
|
| 332 | 332 | throw new ValidationException('include', $includeAttachments); |
| 333 | 333 | } else { |
| 334 | 334 | $include[] = 'attachments'; |
@@ -338,7 +338,7 @@ discard block |
||
| 338 | 338 | // Validate $includeTickets; |
| 339 | 339 | |
| 340 | 340 | if (!empty($includeTickets)) { |
| 341 | - if(!$this->validator->validInclude($includeTickets)) { |
|
| 341 | + if (!$this->validator->validInclude($includeTickets)) { |
|
| 342 | 342 | throw new ValidationException('include', $includeTickets); |
| 343 | 343 | } else { |
| 344 | 344 | $include[] = 'tickets'; |
@@ -348,7 +348,7 @@ discard block |
||
| 348 | 348 | // Validate $includeTicketsEvents; |
| 349 | 349 | |
| 350 | 350 | if (!empty($includeTicketsEvents)) { |
| 351 | - if(!$this->validator->validInclude($includeTicketsEvents)) { |
|
| 351 | + if (!$this->validator->validInclude($includeTicketsEvents)) { |
|
| 352 | 352 | throw new ValidationException('include', $includeTicketsEvents); |
| 353 | 353 | } else { |
| 354 | 354 | $include[] = 'tickets.events'; |
@@ -358,7 +358,7 @@ discard block |
||
| 358 | 358 | // Validate $includeTicketsEvents; |
| 359 | 359 | |
| 360 | 360 | if (!empty($includeTicketsClassPasses)) { |
| 361 | - if(!$this->validator->validInclude($includeTicketsClassPasses)) { |
|
| 361 | + if (!$this->validator->validInclude($includeTicketsClassPasses)) { |
|
| 362 | 362 | throw new ValidationException('include', $includeTicketsClassPasses); |
| 363 | 363 | } else { |
| 364 | 364 | $include[] = 'tickets.class_passes'; |