Passed
Push — scrutinizer ( 5c8123...701070 )
by
unknown
07:35
created
src/Client.php 2 patches
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -353,7 +353,7 @@
 block discarded – undo
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
         }
Please login to merge, or discard this patch.
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -345,9 +345,9 @@  discard block
 block discarded – undo
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
 block discarded – undo
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 {
Please login to merge, or discard this patch.
src/Exceptions/ValidationException.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.