@@ -2,7 +2,8 @@ discard block |
||
| 2 | 2 | |
| 3 | 3 | namespace P2A\YourMembership; |
| 4 | 4 | |
| 5 | -class YourMembershipClient { |
|
| 5 | +class YourMembershipClient |
|
| 6 | +{ |
|
| 6 | 7 | |
| 7 | 8 | public static $API_VERSION = '1.62'; |
| 8 | 9 | public static $BASE_URL = 'https://api.yourmembership.com'; |
@@ -26,7 +27,8 @@ discard block |
||
| 26 | 27 | private $apiKey; |
| 27 | 28 | |
| 28 | 29 | |
| 29 | - public function __construct() { |
|
| 30 | + public function __construct() |
|
| 31 | + { |
|
| 30 | 32 | |
| 31 | 33 | } |
| 32 | 34 | |
@@ -37,7 +39,8 @@ discard block |
||
| 37 | 39 | * @date 2017-01-09 |
| 38 | 40 | * @return [type] [description] |
| 39 | 41 | */ |
| 40 | - private function buildBaseRequest() { |
|
| 42 | + private function buildBaseRequest() |
|
| 43 | + { |
|
| 41 | 44 | |
| 42 | 45 | } |
| 43 | 46 | |
@@ -94,7 +94,8 @@ discard block |
||
| 94 | 94 | * @param array $arguments [description] |
| 95 | 95 | * @return [type] [description] |
| 96 | 96 | */ |
| 97 | - public function call(string $method, array $arguments) { |
|
| 97 | + public function call(string $method, array $arguments) |
|
| 98 | + { |
|
| 98 | 99 | |
| 99 | 100 | $xml = $this->buildXMLPayload($method, $arguments); |
| 100 | 101 | |
@@ -110,7 +111,8 @@ discard block |
||
| 110 | 111 | * @param SimpleXMLElement $to |
| 111 | 112 | * @param SimpleXMLElement $from |
| 112 | 113 | */ |
| 113 | - private function sxmlAppend(\SimpleXMLElement $to, \SimpleXMLElement $from) { |
|
| 114 | + private function sxmlAppend(\SimpleXMLElement $to, \SimpleXMLElement $from) |
|
| 115 | + { |
|
| 114 | 116 | $toDom = dom_import_simplexml($to); |
| 115 | 117 | $fromDom = dom_import_simplexml($from); |
| 116 | 118 | $toDom->appendChild($toDom->ownerDocument->importNode($fromDom, true)); |