@@ -37,7 +37,8 @@ |
||
| 37 | 37 | * @param array $arguments Your Membership API Call Arguments |
| 38 | 38 | * @return Response |
| 39 | 39 | */ |
| 40 | - public function makeCall(string $method, array $arguments = []) { |
|
| 40 | + public function makeCall(string $method, array $arguments = []) |
|
| 41 | + { |
|
| 41 | 42 | |
| 42 | 43 | Request::$callId++; //Update the Call ID as they need to be unique per call |
| 43 | 44 | $request = $this->request->buildRequest($method, $arguments); |
@@ -147,7 +147,8 @@ |
||
| 147 | 147 | * @param \SimpleXMLElement $from |
| 148 | 148 | * @return void |
| 149 | 149 | */ |
| 150 | - private function sxmlAppend(\SimpleXMLElement $to, \SimpleXMLElement $from) { |
|
| 150 | + private function sxmlAppend(\SimpleXMLElement $to, \SimpleXMLElement $from) |
|
| 151 | + { |
|
| 151 | 152 | $toDom = dom_import_simplexml($to); |
| 152 | 153 | $fromDom = dom_import_simplexml($from); |
| 153 | 154 | $toDom->appendChild($toDom->ownerDocument->importNode($fromDom, true)); |
@@ -11,13 +11,14 @@ |
||
| 11 | 11 | { |
| 12 | 12 | private $apiMethod; |
| 13 | 13 | |
| 14 | - public function __construct(string $message, int $code = 0, string $apiMethod) |
|
| 14 | + public function __construct(string $message, int $code = 0, string $apiMethod) |
|
| 15 | 15 | { |
| 16 | 16 | $this->apiMethod = $apiMethod; |
| 17 | 17 | parent::__construct($message, $code, null); |
| 18 | 18 | } |
| 19 | 19 | |
| 20 | - public function __toString() { |
|
| 20 | + public function __toString() |
|
| 21 | + { |
|
| 21 | 22 | return __CLASS__ . ": [{$this->apiMethod}]: {$this->message}\n"; |
| 22 | 23 | } |
| 23 | 24 | |