Passed
Pull Request — develop (#96)
by
unknown
12:19
created
src/Bookwhen.php 1 patch
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -276,7 +276,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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,
Please login to merge, or discard this patch.