@@ -69,7 +69,7 @@ discard block |
||
69 | 69 | * |
70 | 70 | * @param $name |
71 | 71 | * @param $params |
72 | - * @return SimpleXMLElement |
|
72 | + * @return \SimpleXMLElement |
|
73 | 73 | */ |
74 | 74 | public function __call($method, $params) |
75 | 75 | { |
@@ -125,6 +125,7 @@ discard block |
||
125 | 125 | /** |
126 | 126 | * Initialise or inject an instance of the Guzzle client. |
127 | 127 | * |
128 | + * @param GuzzleClient $guzzleClient |
|
128 | 129 | * @return GuzzleClient |
129 | 130 | */ |
130 | 131 | protected function initGuzzleClient($guzzleClient = null) |
@@ -138,7 +139,7 @@ discard block |
||
138 | 139 | * @param string $uri |
139 | 140 | * @param array $params |
140 | 141 | * @throws RequestFailedException |
141 | - * @return SimpleXMLElement |
|
142 | + * @return string |
|
142 | 143 | */ |
143 | 144 | protected function request($uri, $params) |
144 | 145 | { |
@@ -85,7 +85,7 @@ discard block |
||
85 | 85 | |
86 | 86 | try { |
87 | 87 | $xml = simplexml_load_string($xml); |
88 | - } catch(Exception $e) { |
|
88 | + } catch (Exception $e) { |
|
89 | 89 | throw new InvalidXmlException; |
90 | 90 | } |
91 | 91 | |
@@ -119,7 +119,7 @@ discard block |
||
119 | 119 | throw new MissingApiKeyException; |
120 | 120 | } |
121 | 121 | |
122 | - return array_merge([ 'apiKey' => $this->apiKey ], $params[0] ?? []); |
|
122 | + return array_merge([ 'apiKey' => $this->apiKey ], $params[ 0 ] ?? [ ]); |
|
123 | 123 | } |
124 | 124 | |
125 | 125 | /** |