Passed
Pull Request — develop (#53)
by Daniel
15:10
created
src/Exceptions/ValidationException.php 1 patch
Braces   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -26,7 +26,8 @@  discard block
 block discarded – undo
26 26
      * @param unknown $key
27 27
      * @param unknown $value
28 28
      */
29
-    public function __construct($key, $value) {
29
+    public function __construct($key, $value)
30
+    {
30 31
         $this->key = $key;
31 32
         $this->value = $value;
32 33
     }
@@ -35,7 +36,8 @@  discard block
 block discarded – undo
35 36
      * 
36 37
      * @return string
37 38
      */
38
-    public function errorMessage() {
39
+    public function errorMessage()
40
+    {
39 41
 
40 42
         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>';
41 43
     }
Please login to merge, or discard this patch.
src/Client.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -172,7 +172,7 @@  discard block
 block discarded – undo
172 172
             $return = $classPass;
173 173
             return $return;
174 174
         } catch (Exception $e) {
175
-            throw new RestException($e->getMessage());;
175
+            throw new RestException($e->getMessage()); ;
176 176
         }
177 177
     }
178 178
     
@@ -305,7 +305,7 @@  discard block
 block discarded – undo
305 305
     public function getLocation($locationId)
306 306
     {
307 307
         $this->apiResource = $this->apiVersion . '/locations';
308
-        if(!$this->Valdator->validId($locationId, 'location')) {
308
+        if (!$this->Valdator->validId($locationId, 'location')) {
309 309
             throw new ValidationException();
310 310
         }
311 311
         
Please login to merge, or discard this patch.
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.
src/Exceptions/RestException.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
23 23
      * @return string
24 24
      */
25 25
     public function errorMessage() {
26
-        return $this->e->getMessage();    }
26
+        return $this->e->getMessage(); }
27 27
 }
28 28
 
29 29
 //EOF!
Please login to merge, or discard this patch.
Braces   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -14,7 +14,8 @@  discard block
 block discarded – undo
14 14
 {
15 15
     private $e;
16 16
     
17
-    public function __construct($e) {
17
+    public function __construct($e)
18
+    {
18 19
         $this->e = $e;
19 20
     }
20 21
     
@@ -22,7 +23,8 @@  discard block
 block discarded – undo
22 23
      *
23 24
      * @return string
24 25
      */
25
-    public function errorMessage() {
26
+    public function errorMessage()
27
+    {
26 28
         return $this->e->getMessage();    }
27 29
 }
28 30
 
Please login to merge, or discard this patch.