@@ -32,7 +32,12 @@ |
||
32 | 32 | <html xmlns="http://www.w3.org/1999/xhtml" lang="en"> |
33 | 33 | <head> |
34 | 34 | <link rel="icon" type="image/vnd.microsoft.icon" href="favicon.ico"> |
35 | - <title><?php if (defined('DEFAULT_WSTYPE') && DEFAULT_WSTYPE == 1) echo 'JSONRPC'; else echo 'XMLRPC'; ?> Debugger</title> |
|
35 | + <title><?php if (defined('DEFAULT_WSTYPE') && DEFAULT_WSTYPE == 1) { |
|
36 | + echo 'JSONRPC'; |
|
37 | +} else { |
|
38 | + echo 'XMLRPC'; |
|
39 | +} |
|
40 | +?> Debugger</title> |
|
36 | 41 | <meta name="robots" content="index,nofollow"/> |
37 | 42 | <script type="text/javascript" language="Javascript"> |
38 | 43 | if (window.name != 'frmcontroller') |
@@ -17,7 +17,12 @@ discard block |
||
17 | 17 | <html xmlns="http://www.w3.org/1999/xhtml" lang="en"> |
18 | 18 | <head> |
19 | 19 | <link rel="icon" type="image/vnd.microsoft.icon" href="favicon.ico"> |
20 | - <title><?php if (defined('DEFAULT_WSTYPE') && DEFAULT_WSTYPE == 1) echo 'JSONRPC'; else echo 'XMLRPC'; ?> Debugger</title> |
|
20 | + <title><?php if (defined('DEFAULT_WSTYPE') && DEFAULT_WSTYPE == 1) { |
|
21 | + echo 'JSONRPC'; |
|
22 | +} else { |
|
23 | + echo 'XMLRPC'; |
|
24 | +} |
|
25 | +?> Debugger</title> |
|
21 | 26 | <meta name="robots" content="index,nofollow"/> |
22 | 27 | <style type="text/css"> |
23 | 28 | <!-- |
@@ -366,7 +371,9 @@ discard block |
||
366 | 371 | echo "<code>OUT: " . htmlspecialchars($ret->scalarval(), ENT_COMPAT, \PhpXmlRpc\PhpXmlRpc::$xmlrpc_internalencoding) . "<br />IN: ("; |
367 | 372 | if ($x->count() > 1) { |
368 | 373 | foreach($x as $k => $y) { |
369 | - if ($k == 0) continue; |
|
374 | + if ($k == 0) { |
|
375 | + continue; |
|
376 | + } |
|
370 | 377 | echo htmlspecialchars($y->scalarval(), ENT_COMPAT, \PhpXmlRpc\PhpXmlRpc::$xmlrpc_internalencoding); |
371 | 378 | if ($wstype != 1) { |
372 | 379 | $type = $y->scalarval(); |
@@ -12,7 +12,12 @@ |
||
12 | 12 | <html lang="en"> |
13 | 13 | <head> |
14 | 14 | <link rel="icon" type="image/vnd.microsoft.icon" href="favicon.ico"> |
15 | - <title><?php if (defined('DEFAULT_WSTYPE') && DEFAULT_WSTYPE == 1) echo 'JSONRPC'; else echo 'XMLRPC'; ?> Debugger</title> |
|
15 | + <title><?php if (defined('DEFAULT_WSTYPE') && DEFAULT_WSTYPE == 1) { |
|
16 | + echo 'JSONRPC'; |
|
17 | +} else { |
|
18 | + echo 'XMLRPC'; |
|
19 | +} |
|
20 | +?> Debugger</title> |
|
16 | 21 | </head> |
17 | 22 | <frameset rows="360,*"> |
18 | 23 | <frame name="frmcontroller" src="controller.php<?php echo htmlspecialchars($query); ?>" marginwidth="0" |
@@ -121,35 +121,35 @@ |
||
121 | 121 | public function serialize($charsetEncoding = '') |
122 | 122 | { |
123 | 123 | if ($charsetEncoding != '') { |
124 | - $this->content_type = 'text/xml; charset=' . $charsetEncoding; |
|
124 | + $this->content_type = 'text/xml; charset='.$charsetEncoding; |
|
125 | 125 | } else { |
126 | 126 | $this->content_type = 'text/xml'; |
127 | 127 | } |
128 | 128 | if (PhpXmlRpc::$xmlrpc_null_apache_encoding) { |
129 | - $result = "<methodResponse xmlns:ex=\"" . PhpXmlRpc::$xmlrpc_null_apache_encoding_ns . "\">\n"; |
|
129 | + $result = "<methodResponse xmlns:ex=\"".PhpXmlRpc::$xmlrpc_null_apache_encoding_ns."\">\n"; |
|
130 | 130 | } else { |
131 | 131 | $result = "<methodResponse>\n"; |
132 | 132 | } |
133 | 133 | if ($this->errno) { |
134 | 134 | // Let non-ASCII response messages be tolerated by clients by xml-encoding non ascii chars |
135 | - $result .= "<fault>\n" . |
|
136 | - "<value>\n<struct><member><name>faultCode</name>\n<value><int>" . $this->errno . |
|
137 | - "</int></value>\n</member>\n<member>\n<name>faultString</name>\n<value><string>" . |
|
138 | - Charset::instance()->encodeEntities($this->errstr, PhpXmlRpc::$xmlrpc_internalencoding, $charsetEncoding) . "</string></value>\n</member>\n" . |
|
135 | + $result .= "<fault>\n". |
|
136 | + "<value>\n<struct><member><name>faultCode</name>\n<value><int>".$this->errno. |
|
137 | + "</int></value>\n</member>\n<member>\n<name>faultString</name>\n<value><string>". |
|
138 | + Charset::instance()->encodeEntities($this->errstr, PhpXmlRpc::$xmlrpc_internalencoding, $charsetEncoding)."</string></value>\n</member>\n". |
|
139 | 139 | "</struct>\n</value>\n</fault>"; |
140 | 140 | } else { |
141 | 141 | if (!is_object($this->val) || !is_a($this->val, 'PhpXmlRpc\Value')) { |
142 | 142 | if (is_string($this->val) && $this->valtyp == 'xml') { |
143 | - $result .= "<params>\n<param>\n" . |
|
144 | - $this->val . |
|
143 | + $result .= "<params>\n<param>\n". |
|
144 | + $this->val. |
|
145 | 145 | "</param>\n</params>"; |
146 | 146 | } else { |
147 | 147 | /// @todo try to build something serializable using the Encoder... |
148 | 148 | throw new \Exception('cannot serialize xmlrpc response objects whose content is native php values'); |
149 | 149 | } |
150 | 150 | } else { |
151 | - $result .= "<params>\n<param>\n" . |
|
152 | - $this->val->serialize($charsetEncoding) . |
|
151 | + $result .= "<params>\n<param>\n". |
|
152 | + $this->val->serialize($charsetEncoding). |
|
153 | 153 | "</param>\n</params>"; |
154 | 154 | } |
155 | 155 | } |