@@ -41,7 +41,7 @@ discard block |
||
| 41 | 41 | */ |
| 42 | 42 | public function setValue($value) |
| 43 | 43 | { |
| 44 | - $this->_value = $value; |
|
| 44 | + $this->_value=$value; |
|
| 45 | 45 | } |
| 46 | 46 | |
| 47 | 47 | /** |
@@ -58,6 +58,6 @@ discard block |
||
| 58 | 58 | */ |
| 59 | 59 | public function setResultMapping($value) |
| 60 | 60 | { |
| 61 | - $this->_resultMapping = $value; |
|
| 61 | + $this->_resultMapping=$value; |
|
| 62 | 62 | } |
| 63 | 63 | } |
| 64 | 64 | \ No newline at end of file |
@@ -23,6 +23,6 @@ |
||
| 23 | 23 | { |
| 24 | 24 | private $_generate; |
| 25 | 25 | |
| 26 | - public function getGenerate(){ return $this->_generate; } |
|
| 27 | - public function setGenerate($value){ $this->_generate = $value; } |
|
| 26 | + public function getGenerate() { return $this->_generate; } |
|
| 27 | + public function setGenerate($value) { $this->_generate=$value; } |
|
| 28 | 28 | } |
| 29 | 29 | \ No newline at end of file |
@@ -39,6 +39,6 @@ |
||
| 39 | 39 | */ |
| 40 | 40 | public function setSelectKey($value) |
| 41 | 41 | { |
| 42 | - $this->_selectKey = $value; |
|
| 42 | + $this->_selectKey=$value; |
|
| 43 | 43 | } |
| 44 | 44 | } |
| 45 | 45 | \ No newline at end of file |
@@ -20,6 +20,6 @@ |
||
| 20 | 20 | |
| 21 | 21 | class TRpcClientTypesEnumerable extends \Prado\TEnumerable |
| 22 | 22 | { |
| 23 | - const JSON = 'TJsonRpcClient'; |
|
| 24 | - const XML = 'TXmlRpcClient'; |
|
| 23 | + const JSON='TJsonRpcClient'; |
|
| 24 | + const XML='TXmlRpcClient'; |
|
| 25 | 25 | } |
| 26 | 26 | \ No newline at end of file |
@@ -41,14 +41,14 @@ discard block |
||
| 41 | 41 | public function __call($method, $parameters) |
| 42 | 42 | { |
| 43 | 43 | // send request |
| 44 | - $_response = $this->performRequest($this->getServerUrl(), $this->encodeRequest($method, $parameters), 'text/xml'); |
|
| 44 | + $_response=$this->performRequest($this->getServerUrl(), $this->encodeRequest($method, $parameters), 'text/xml'); |
|
| 45 | 45 | |
| 46 | 46 | // skip response handling if the request was just a notification request |
| 47 | 47 | if($this->isNotification) |
| 48 | 48 | return true; |
| 49 | 49 | |
| 50 | 50 | // decode response |
| 51 | - if(($_response = xmlrpc_decode($_response)) === null) |
|
| 51 | + if(($_response=xmlrpc_decode($_response))===null) |
|
| 52 | 52 | throw new TRpcClientResponseException('Empty response received'); |
| 53 | 53 | |
| 54 | 54 | // handle error response |
@@ -74,7 +74,7 @@ discard block |
||
| 74 | 74 | * @param string url of the rpc server |
| 75 | 75 | * @param boolean whether the requests are considered to be notifications (completely ignoring the response) (default: false) |
| 76 | 76 | */ |
| 77 | - public static function create($type, $serverUrl, $isNotification = false) |
|
| 77 | + public static function create($type, $serverUrl, $isNotification=false) |
|
| 78 | 78 | { |
| 79 | 79 | return new self($serverUrl, $isNotification); |
| 80 | 80 | } |
@@ -27,7 +27,7 @@ |
||
| 27 | 27 | * @param string error message |
| 28 | 28 | * @param integer error code (optional) |
| 29 | 29 | */ |
| 30 | - public function __construct($errorMessage, $errorCode = null) |
|
| 30 | + public function __construct($errorMessage, $errorCode=null) |
|
| 31 | 31 | { |
| 32 | 32 | $this->setErrorCode($errorCode); |
| 33 | 33 | |
@@ -23,7 +23,7 @@ |
||
| 23 | 23 | */ |
| 24 | 24 | class TRpcException extends TException |
| 25 | 25 | { |
| 26 | - public function __construct($message, $errorCode = -1) |
|
| 26 | + public function __construct($message, $errorCode=-1) |
|
| 27 | 27 | { |
| 28 | 28 | $this->setErrorCode($errorCode); |
| 29 | 29 | |
@@ -61,7 +61,7 @@ |
||
| 61 | 61 | */ |
| 62 | 62 | public function __construct(TRpcServer $rpcServer) |
| 63 | 63 | { |
| 64 | - $this->rpcServer = $rpcServer; |
|
| 64 | + $this->rpcServer=$rpcServer; |
|
| 65 | 65 | |
| 66 | 66 | foreach($this->registerMethods() as $_methodName => $_methodDetails) |
| 67 | 67 | $this->rpcServer->addRpcMethod($_methodName, $_methodDetails); |
@@ -35,7 +35,7 @@ |
||
| 35 | 35 | */ |
| 36 | 36 | public function __construct() |
| 37 | 37 | { |
| 38 | - $this->_xmlrpcServer = xmlrpc_server_create(); |
|
| 38 | + $this->_xmlrpcServer=xmlrpc_server_create(); |
|
| 39 | 39 | } |
| 40 | 40 | |
| 41 | 41 | /** |