This repository was archived by the owner on Apr 28, 2020. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -371,7 +371,11 @@ protected static function _xmlStringToNativeXmlRpc($xml)
371371 }
372372
373373 if (null === $ data ) {
374- throw new Exception \ValueException ('Invalid XML for XML-RPC native ' . self ::XMLRPC_TYPE_ARRAY .' type: ARRAY tag must contain DATA tag ' );
374+ throw new Exception \ValueException (
375+ 'Invalid XML for XML-RPC native '
376+ . self ::XMLRPC_TYPE_ARRAY
377+ . ' type: ARRAY tag must contain DATA tag '
378+ );
375379 }
376380 $ values = array ();
377381 // Parse all the elements of the array from the XML string
@@ -397,7 +401,9 @@ protected static function _xmlStringToNativeXmlRpc($xml)
397401 $ xmlrpcValue = new Value \Struct ($ values );
398402 break ;
399403 default :
400- throw new Exception \ValueException ('Value type \'' . $ type .'\' parsed from the XML string is not a known XML-RPC native type ' );
404+ throw new Exception \ValueException (
405+ 'Value type \'' . $ type . '\' parsed from the XML string is not a known XML-RPC native type '
406+ );
401407 break ;
402408 }
403409 $ xmlrpcValue ->_setXML ($ xml ->asXML ());
@@ -415,7 +421,11 @@ protected static function _createSimpleXMLElement(&$xml)
415421 $ xml = new \SimpleXMLElement ($ xml );
416422 } catch (\Exception $ e ) {
417423 // The given string is not a valid XML
418- throw new Exception \ValueException ('Failed to create XML-RPC value from XML string: ' . $ e ->getMessage (), $ e ->getCode (), $ e );
424+ throw new Exception \ValueException (
425+ 'Failed to create XML-RPC value from XML string: ' . $ e ->getMessage (),
426+ $ e ->getCode (),
427+ $ e
428+ );
419429 }
420430 }
421431
Original file line number Diff line number Diff line change @@ -126,7 +126,7 @@ public function getIntrospector()
126126 }
127127
128128
129- /**
129+ /**
130130 * The request of the last method call
131131 *
132132 * @return \Zend\XmlRpc\Request
@@ -251,7 +251,7 @@ public function doRequest($request, $response = null)
251251 * @return mixed
252252 * @throws \Zend\XmlRpc\Client\Exception\FaultException
253253 */
254- public function call ($ method , $ params= array ())
254+ public function call ($ method , $ params = array ())
255255 {
256256 if (!$ this ->skipSystemLookup () && ('system. ' != substr ($ method , 0 , 7 ))) {
257257 // Ensure empty array/struct params are cast correctly
@@ -323,7 +323,7 @@ public function call($method, $params=array())
323323 throw new Client \Exception \FaultException (
324324 $ fault ->getMessage (),
325325 $ fault ->getCode ()
326- );
326+ );
327327 }
328328
329329 return $ this ->lastResponse ->getReturnValue ();
Original file line number Diff line number Diff line change @@ -330,7 +330,10 @@ public function loadFunctions($definition)
330330 } else {
331331 $ type = gettype ($ definition );
332332 }
333- throw new Server \Exception \InvalidArgumentException ('Unable to load server definition; must be an array or Zend\Server\Definition, received ' . $ type , 612 );
333+ throw new Server \Exception \InvalidArgumentException (
334+ 'Unable to load server definition; must be an array or Zend\Server\Definition, received ' . $ type ,
335+ 612
336+ );
334337 }
335338
336339 $ this ->table ->clearMethods ();
You can’t perform that action at this time.
0 commit comments