@@ -22,7 +22,7 @@ discard block |
||
22 | 22 | */ |
23 | 23 | class TSqlMapSelectKey extends TSqlMapStatement |
24 | 24 | { |
25 | - private $_type = 'post'; |
|
25 | + private $_type='post'; |
|
26 | 26 | private $_property; |
27 | 27 | |
28 | 28 | /** |
@@ -38,7 +38,7 @@ discard block |
||
38 | 38 | */ |
39 | 39 | public function setType($value) |
40 | 40 | { |
41 | - $this->_type = strtolower($value) == 'post' ? 'post' : 'pre'; |
|
41 | + $this->_type=strtolower($value)=='post' ? 'post' : 'pre'; |
|
42 | 42 | } |
43 | 43 | |
44 | 44 | /** |
@@ -54,7 +54,7 @@ discard block |
||
54 | 54 | */ |
55 | 55 | public function setProperty($value) |
56 | 56 | { |
57 | - $this->_property = $value; |
|
57 | + $this->_property=$value; |
|
58 | 58 | } |
59 | 59 | |
60 | 60 | /** |
@@ -70,6 +70,6 @@ discard block |
||
70 | 70 | */ |
71 | 71 | public function getIsAfter() |
72 | 72 | { |
73 | - return $this->_type == 'post'; |
|
73 | + return $this->_type=='post'; |
|
74 | 74 | } |
75 | 75 | } |
76 | 76 | \ No newline at end of file |
@@ -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 |
@@ -38,7 +38,7 @@ |
||
38 | 38 | */ |
39 | 39 | public function __construct(TRpcProtocol $protocolHandler) |
40 | 40 | { |
41 | - $this->handler = $protocolHandler; |
|
41 | + $this->handler=$protocolHandler; |
|
42 | 42 | } |
43 | 43 | |
44 | 44 | /** |
@@ -69,8 +69,7 @@ |
||
69 | 69 | try |
70 | 70 | { |
71 | 71 | return $this->handler->callMethod($this->getPayload()); |
72 | - } |
|
73 | - catch(TRpcException $e) |
|
72 | + } catch(TRpcException $e) |
|
74 | 73 | { |
75 | 74 | return $this->handler->createErrorResponse($e); |
76 | 75 | } |