@@ -72,11 +72,11 @@ discard block |
||
72 | 72 | { |
73 | 73 | //Create Call Node |
74 | 74 | $call = new \SimpleXMLElement('<Call> </Call>'); |
75 | - $call->addAttribute('Method',$method); |
|
75 | + $call->addAttribute('Method', $method); |
|
76 | 76 | |
77 | 77 | //Add Arguments to the Call Node |
78 | 78 | foreach ($arguments as $key => $value) { |
79 | - $call->addChild($key,$value); |
|
79 | + $call->addChild($key, $value); |
|
80 | 80 | } |
81 | 81 | |
82 | 82 | return $call; |
@@ -93,7 +93,7 @@ discard block |
||
93 | 93 | $callPayload = $this->createCallPayload($method, $arguments); // Specific API Call Envelope |
94 | 94 | |
95 | 95 | // Put Api call into common envelope |
96 | - $this->sxmlAppend($xml,$callPayload); |
|
96 | + $this->sxmlAppend($xml, $callPayload); |
|
97 | 97 | |
98 | 98 | return $xml; |
99 | 99 | } |
@@ -139,7 +139,7 @@ discard block |
||
139 | 139 | * @param SimpleXMLElement $from |
140 | 140 | * @return void |
141 | 141 | */ |
142 | - private function sxmlAppend(\SimpleXMLElement $to, \SimpleXMLElement $from) { |
|
142 | + private function sxmlAppend(\SimpleXMLElement $to, \SimpleXMLElement $from) { |
|
143 | 143 | $toDom = dom_import_simplexml($to); |
144 | 144 | $fromDom = dom_import_simplexml($from); |
145 | 145 | $toDom->appendChild($toDom->ownerDocument->importNode($fromDom, true)); |
@@ -55,7 +55,7 @@ |
||
55 | 55 | */ |
56 | 56 | private function createSession() : string |
57 | 57 | { |
58 | - $response = $this->makeCall('Session.Create')->toObject(); |
|
58 | + $response = $this->makeCall('Session.Create')->toObject(); |
|
59 | 59 | return $response->SessionID; |
60 | 60 | |
61 | 61 | } |
@@ -10,7 +10,7 @@ discard block |
||
10 | 10 | private $method; |
11 | 11 | private $response; |
12 | 12 | |
13 | - public function __construct(string $method, $response) |
|
13 | + public function __construct(string $method, $response) |
|
14 | 14 | { |
15 | 15 | $this->method = $method; |
16 | 16 | |
@@ -52,7 +52,7 @@ discard block |
||
52 | 52 | */ |
53 | 53 | public function getError() : string |
54 | 54 | { |
55 | - return (string)$this->response->ErrDesc; |
|
55 | + return (string) $this->response->ErrDesc; |
|
56 | 56 | } |
57 | 57 | |
58 | 58 | /** |
@@ -114,7 +114,7 @@ discard block |
||
114 | 114 | |
115 | 115 | if (isset($this->response->{$this->method}->Results)) { |
116 | 116 | $attributes = $this->response->{$this->method}->Results->attributes(); |
117 | - $count = (int) $attributes['ResultTotal'] ?? false; |
|
117 | + $count = (int) $attributes['ResultTotal'] ?? false; |
|
118 | 118 | } |
119 | 119 | |
120 | 120 | return $count; |