diff --git a/library/Zend/XmlRpc/AbstractValue.php b/library/Zend/XmlRpc/AbstractValue.php index 221238a094c..a986607274e 100644 --- a/library/Zend/XmlRpc/AbstractValue.php +++ b/library/Zend/XmlRpc/AbstractValue.php @@ -371,7 +371,11 @@ protected static function _xmlStringToNativeXmlRpc($xml) } if (null === $data) { - throw new Exception\ValueException('Invalid XML for XML-RPC native '. self::XMLRPC_TYPE_ARRAY .' type: ARRAY tag must contain DATA tag'); + throw new Exception\ValueException( + 'Invalid XML for XML-RPC native ' + . self::XMLRPC_TYPE_ARRAY + . ' type: ARRAY tag must contain DATA tag' + ); } $values = array(); // Parse all the elements of the array from the XML string @@ -397,7 +401,9 @@ protected static function _xmlStringToNativeXmlRpc($xml) $xmlrpcValue = new Value\Struct($values); break; default: - throw new Exception\ValueException('Value type \''. $type .'\' parsed from the XML string is not a known XML-RPC native type'); + throw new Exception\ValueException( + 'Value type \'' . $type . '\' parsed from the XML string is not a known XML-RPC native type' + ); break; } $xmlrpcValue->_setXML($xml->asXML()); @@ -415,7 +421,11 @@ protected static function _createSimpleXMLElement(&$xml) $xml = new \SimpleXMLElement($xml); } catch (\Exception $e) { // The given string is not a valid XML - throw new Exception\ValueException('Failed to create XML-RPC value from XML string: ' . $e->getMessage(), $e->getCode(), $e); + throw new Exception\ValueException( + 'Failed to create XML-RPC value from XML string: ' . $e->getMessage(), + $e->getCode(), + $e + ); } } diff --git a/library/Zend/XmlRpc/Client.php b/library/Zend/XmlRpc/Client.php index 504a3bf2316..bb03a18d219 100644 --- a/library/Zend/XmlRpc/Client.php +++ b/library/Zend/XmlRpc/Client.php @@ -126,7 +126,7 @@ public function getIntrospector() } - /** + /** * The request of the last method call * * @return \Zend\XmlRpc\Request @@ -251,7 +251,7 @@ public function doRequest($request, $response = null) * @return mixed * @throws \Zend\XmlRpc\Client\Exception\FaultException */ - public function call($method, $params=array()) + public function call($method, $params = array()) { if (!$this->skipSystemLookup() && ('system.' != substr($method, 0, 7))) { // Ensure empty array/struct params are cast correctly @@ -323,7 +323,7 @@ public function call($method, $params=array()) throw new Client\Exception\FaultException( $fault->getMessage(), $fault->getCode() - ); + ); } return $this->lastResponse->getReturnValue(); diff --git a/library/Zend/XmlRpc/Server.php b/library/Zend/XmlRpc/Server.php index cdde530102b..45c730888af 100644 --- a/library/Zend/XmlRpc/Server.php +++ b/library/Zend/XmlRpc/Server.php @@ -330,7 +330,10 @@ public function loadFunctions($definition) } else { $type = gettype($definition); } - throw new Server\Exception\InvalidArgumentException('Unable to load server definition; must be an array or Zend\Server\Definition, received ' . $type, 612); + throw new Server\Exception\InvalidArgumentException( + 'Unable to load server definition; must be an array or Zend\Server\Definition, received ' . $type, + 612 + ); } $this->table->clearMethods();