Services/Xero.php
authoredward <edward@roojs.com>
Thu, 28 Jun 2018 06:08:32 +0000 (14:08 +0800)
committeredward <edward@roojs.com>
Thu, 28 Jun 2018 06:08:32 +0000 (14:08 +0800)
Services/Xero.php

index 69efcca..7b4ba3b 100644 (file)
@@ -24,7 +24,7 @@ class Services_Xero
         $response = $this->XeroOAuth->request('GET', $this->XeroOAuth->url('Contacts', 'core'), $params, '', $this->format);
         
         if (empty($this->XeroOAuth->response['code']) || $this->XeroOAuth->response['code'] != 200) {
-            return $this->XeroFail($this->XeroOAuth->response);
+            return $this->toFailedResult($this->XeroOAuth->response);
         }
         
         $contacts = $this->XeroOAuth->parseResponse($this->XeroOAuth->response['response'], $this->XeroOAuth->response['format']);
@@ -75,7 +75,7 @@ class Services_Xero
         return $invoice;
     }
     
-    function XeroFail($response)
+    function toFailedResult($response)
     {
         
     }