We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c7d0c16 commit 5914ab9Copy full SHA for 5914ab9
src/PleskX/Api/Client.php
@@ -142,6 +142,7 @@ public function request($request, $mode = self::RESPONSE_SHORT)
142
} else {
143
$xml = $this->_performHttpRequest($request);
144
}
145
+ $this->_verifyResponse($xml);
146
147
return (self::RESPONSE_FULL == $mode) ? $xml : $xml->xpath('//result')[0];
148
@@ -182,8 +183,6 @@ private function _performHttpRequest($request)
182
183
curl_close($curl);
184
185
$xml = new XmlResponse($result);
- $this->_verifyResponse($xml);
186
-
187
return $xml;
188
189
0 commit comments