Passed
Push — master ( 314870...f47fb2 )
by Gaetano
07:14
created
debugger/index.php 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,12 +1,12 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-if (getenv('TESTMODE') === 'true') require_once __DIR__ . "/../demo/server/_prepend.php";
3
+if (getenv('TESTMODE') === 'true') require_once __DIR__."/../demo/server/_prepend.php";
4 4
 
5 5
 $query = '';
6 6
 if (isset($_GET['run'])) {
7 7
     $path = parse_url($_GET['run']);
8 8
     if (isset($path['query'])) {
9
-        $query = '?' . $path['query'];
9
+        $query = '?'.$path['query'];
10 10
     }
11 11
 }
12 12
 ?>
@@ -23,4 +23,4 @@  discard block
 block discarded – undo
23 23
     <frame name="frmaction" src="action.php" marginwidth="0" marginheight="0" frameborder="0"/>
24 24
 </frameset>
25 25
 </html>
26
-<?php if (getenv('TESTMODE') === 'true') require_once __DIR__ . "/../demo/server/_append.php"; ?>
26
+<?php if (getenv('TESTMODE') === 'true') require_once __DIR__."/../demo/server/_append.php"; ?>
Please login to merge, or discard this patch.
Braces   +13 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,6 +1,8 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-if (getenv('TESTMODE') === 'true') require_once __DIR__ . "/../demo/server/_prepend.php";
3
+if (getenv('TESTMODE') === 'true') {
4
+    require_once __DIR__ . "/../demo/server/_prepend.php";
5
+}
4 6
 
5 7
 $query = '';
6 8
 if (isset($_GET['run'])) {
@@ -15,7 +17,12 @@  discard block
 block discarded – undo
15 17
 <html lang="en">
16 18
 <head>
17 19
     <link rel="icon" type="image/vnd.microsoft.icon" href="favicon.ico">
18
-    <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>
19 26
 </head>
20 27
 <frameset rows="360,*">
21 28
     <frame name="frmcontroller" src="controller.php<?php echo htmlspecialchars($query); ?>" marginwidth="0"
@@ -23,4 +30,7 @@  discard block
 block discarded – undo
23 30
     <frame name="frmaction" src="action.php" marginwidth="0" marginheight="0" frameborder="0"/>
24 31
 </frameset>
25 32
 </html>
26
-<?php if (getenv('TESTMODE') === 'true') require_once __DIR__ . "/../demo/server/_append.php"; ?>
33
+<?php if (getenv('TESTMODE') === 'true') {
34
+    require_once __DIR__ . "/../demo/server/_append.php";
35
+}
36
+?>
Please login to merge, or discard this patch.
debugger/action.php 2 patches
Spacing   +115 added lines, -115 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
9 9
  * @todo be smarter in creating client stub for proxy/auth cases: only set appropriate property of client obj
10 10
  **/
11 11
 
12
-if (getenv('TESTMODE') === 'true') require_once __DIR__ . "/../demo/server/_prepend.php";
12
+if (getenv('TESTMODE') === 'true') require_once __DIR__."/../demo/server/_prepend.php";
13 13
 
14 14
 header('Content-Type: text/html; charset=utf-8');
15 15
 
@@ -94,13 +94,13 @@  discard block
 block discarded – undo
94 94
 <body>
95 95
 <?php
96 96
 
97
-include __DIR__ . '/common.php';
97
+include __DIR__.'/common.php';
98 98
 
99 99
 if ($action) {
100 100
 
101 101
     // make sure the script waits long enough for the call to complete...
102 102
     if ($timeout) {
103
-        set_time_limit($timeout + 10);
103
+        set_time_limit($timeout+10);
104 104
     }
105 105
 
106 106
     if ($wstype == 1) {
@@ -125,13 +125,13 @@  discard block
 block discarded – undo
125 125
         $server = "$host$path";
126 126
     }
127 127
     if ($protocol == 2) {
128
-        $server = 'https://' . $server;
128
+        $server = 'https://'.$server;
129 129
     } else {
130
-        $server = 'http://' . $server;
130
+        $server = 'http://'.$server;
131 131
     }
132 132
     if ($proxy != '') {
133 133
         $pproxy = explode(':', $proxy);
134
-        if (count($pproxy) > 1) {
134
+        if (count($pproxy)>1) {
135 135
             $pport = $pproxy[1];
136 136
         } else {
137 137
             $pport = 8080;
@@ -200,9 +200,9 @@  discard block
 block discarded – undo
200 200
         case 'wrap':
201 201
             $msg[0] = new $requestClass('system.methodHelp', array(), $id);
202 202
             $msg[0]->addparam(new PhpXmlRpc\Value($method));
203
-            $msg[1] = new $requestClass('system.methodSignature', array(), (int)$id + 1);
203
+            $msg[1] = new $requestClass('system.methodSignature', array(), (int) $id+1);
204 204
             $msg[1]->addparam(new PhpXmlRpc\Value($method));
205
-            $actionname = 'Description of method "' . $method . '"';
205
+            $actionname = 'Description of method "'.$method.'"';
206 206
             break;
207 207
         case 'list':
208 208
             $msg[0] = new $requestClass('system.listMethods', array(), $id);
@@ -215,9 +215,9 @@  discard block
 block discarded – undo
215 215
             $msg[0] = new $requestClass($method, array(), $id);
216 216
             // hack! build xml payload by hand
217 217
             if ($wstype == 1) {
218
-                $msg[0]->payload = "{\n" .
219
-                    '"method": "' . $method . "\",\n\"params\": [" .
220
-                    $payload .
218
+                $msg[0]->payload = "{\n".
219
+                    '"method": "'.$method."\",\n\"params\": [".
220
+                    $payload.
221 221
                     "\n],\n\"id\": ";
222 222
                 // fix: if user gave an empty string, use NULL, or we'll break json syntax
223 223
                 if ($id == "") {
@@ -230,20 +230,20 @@  discard block
 block discarded – undo
230 230
                     }
231 231
                 }
232 232
             } else {
233
-                $msg[0]->payload = $msg[0]->xml_header($inputcharset) .
234
-                    '<methodName>' . $method . "</methodName>\n<params>" .
235
-                    $payload .
236
-                    "</params>\n" . $msg[0]->xml_footer();
233
+                $msg[0]->payload = $msg[0]->xml_header($inputcharset).
234
+                    '<methodName>'.$method."</methodName>\n<params>".
235
+                    $payload.
236
+                    "</params>\n".$msg[0]->xml_footer();
237 237
             }
238
-            $actionname = 'Execution of method ' . $method;
238
+            $actionname = 'Execution of method '.$method;
239 239
             break;
240 240
         default: // give a warning
241
-            $actionname = '[ERROR: unknown action] "' . $action . '"';
241
+            $actionname = '[ERROR: unknown action] "'.$action.'"';
242 242
     }
243 243
 
244 244
     // Before calling execute, echo out brief description of action taken + date and time ???
245 245
     // this gives good user feedback for long-running methods...
246
-    echo '<h2>' . htmlspecialchars($actionname, ENT_COMPAT, $inputcharset) . ' on server ' . htmlspecialchars($server, ENT_COMPAT, $inputcharset) . " ...</h2>\n";
246
+    echo '<h2>'.htmlspecialchars($actionname, ENT_COMPAT, $inputcharset).' on server '.htmlspecialchars($server, ENT_COMPAT, $inputcharset)." ...</h2>\n";
247 247
     flush();
248 248
 
249 249
     $response = null;
@@ -261,7 +261,7 @@  discard block
 block discarded – undo
261 261
             break;
262 262
         }
263 263
     }
264
-    $time = microtime(true) - $time;
264
+    $time = microtime(true)-$time;
265 265
     if ($debug) {
266 266
         echo "</div>\n";
267 267
     }
@@ -271,8 +271,8 @@  discard block
 block discarded – undo
271 271
             // call failed! echo out error msg!
272 272
             //echo '<h2>'.htmlspecialchars($actionname, ENT_COMPAT, $inputcharset).' on server '.htmlspecialchars($server, ENT_COMPAT, $inputcharset).'</h2>';
273 273
             echo "<h3>$protoName call FAILED!</h3>\n";
274
-            echo "<p>Fault code: [" . htmlspecialchars($response->faultCode(), ENT_COMPAT, \PhpXmlRpc\PhpXmlRpc::$xmlrpc_internalencoding) .
275
-                "] Reason: '" . htmlspecialchars($response->faultString(), ENT_COMPAT, \PhpXmlRpc\PhpXmlRpc::$xmlrpc_internalencoding) . "'</p>\n";
274
+            echo "<p>Fault code: [".htmlspecialchars($response->faultCode(), ENT_COMPAT, \PhpXmlRpc\PhpXmlRpc::$xmlrpc_internalencoding).
275
+                "] Reason: '".htmlspecialchars($response->faultString(), ENT_COMPAT, \PhpXmlRpc\PhpXmlRpc::$xmlrpc_internalencoding)."'</p>\n";
276 276
             echo(date("d/M/Y:H:i:s\n"));
277 277
         } else {
278 278
             // call succeeded: parse results
@@ -288,36 +288,36 @@  discard block
 block discarded – undo
288 288
                         $max = $v->count();
289 289
                         echo "<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n";
290 290
                         echo "<thead>\n<tr><th>Method ($max)</th><th>Description</th></tr>\n</thead>\n<tbody>\n";
291
-                        foreach($v as $i => $rec) {
291
+                        foreach ($v as $i => $rec) {
292 292
                             if ($i % 2) {
293 293
                                 $class = ' class="oddrow"';
294 294
                             } else {
295 295
                                 $class = ' class="evenrow"';
296 296
                             }
297
-                            echo("<tr><td$class>" . htmlspecialchars($rec->scalarval(), ENT_COMPAT, \PhpXmlRpc\PhpXmlRpc::$xmlrpc_internalencoding) . "</td><td$class><form action=\"controller.php\" method=\"get\" target=\"frmcontroller\">" .
298
-                                "<input type=\"hidden\" name=\"host\" value=\"" . htmlspecialchars($host, ENT_COMPAT, $inputcharset) . "\" />" .
299
-                                "<input type=\"hidden\" name=\"port\" value=\"" . htmlspecialchars($port, ENT_COMPAT, $inputcharset) . "\" />" .
300
-                                "<input type=\"hidden\" name=\"path\" value=\"" . htmlspecialchars($path, ENT_COMPAT, $inputcharset) . "\" />" .
301
-                                "<input type=\"hidden\" name=\"id\" value=\"" . htmlspecialchars($id, ENT_COMPAT, $inputcharset) . "\" />" .
302
-                                "<input type=\"hidden\" name=\"debug\" value=\"$debug\" />" .
303
-                                "<input type=\"hidden\" name=\"username\" value=\"" . htmlspecialchars($username, ENT_COMPAT, $inputcharset) . "\" />" .
304
-                                "<input type=\"hidden\" name=\"password\" value=\"" . htmlspecialchars($password, ENT_COMPAT, $inputcharset) . "\" />" .
305
-                                "<input type=\"hidden\" name=\"authtype\" value=\"$authtype\" />" .
306
-                                "<input type=\"hidden\" name=\"verifyhost\" value=\"$verifyhost\" />" .
307
-                                "<input type=\"hidden\" name=\"verifypeer\" value=\"$verifypeer\" />" .
308
-                                "<input type=\"hidden\" name=\"cainfo\" value=\"" . htmlspecialchars($cainfo, ENT_COMPAT, $inputcharset) . "\" />" .
309
-                                "<input type=\"hidden\" name=\"proxy\" value=\"" . htmlspecialchars($proxy, ENT_COMPAT, $inputcharset) . "\" />" .
310
-                                "<input type=\"hidden\" name=\"proxyuser\" value=\"" . htmlspecialchars($proxyuser, ENT_COMPAT, $inputcharset) . "\" />" .
311
-                                "<input type=\"hidden\" name=\"proxypwd\" value=\"" . htmlspecialchars($proxypwd, ENT_COMPAT, $inputcharset) . "\" />" .
312
-                                "<input type=\"hidden\" name=\"responsecompression\" value=\"$responsecompression\" />" .
313
-                                "<input type=\"hidden\" name=\"requestcompression\" value=\"$requestcompression\" />" .
314
-                                "<input type=\"hidden\" name=\"clientcookies\" value=\"" . htmlspecialchars($clientcookies, ENT_COMPAT, $inputcharset) . "\" />" .
315
-                                "<input type=\"hidden\" name=\"protocol\" value=\"$protocol\" />" .
316
-                                "<input type=\"hidden\" name=\"timeout\" value=\"" . htmlspecialchars($timeout, ENT_COMPAT, $inputcharset) . "\" />" .
317
-                                "<input type=\"hidden\" name=\"method\" value=\"" . htmlspecialchars($rec->scalarval(), ENT_COMPAT, \PhpXmlRpc\PhpXmlRpc::$xmlrpc_internalencoding) . "\" />" .
318
-                                "<input type=\"hidden\" name=\"wstype\" value=\"$wstype\" />" .
319
-                                "<input type=\"hidden\" name=\"action\" value=\"describe\" />" .
320
-                                "<input type=\"hidden\" name=\"run\" value=\"now\" />" .
297
+                            echo("<tr><td$class>".htmlspecialchars($rec->scalarval(), ENT_COMPAT, \PhpXmlRpc\PhpXmlRpc::$xmlrpc_internalencoding)."</td><td$class><form action=\"controller.php\" method=\"get\" target=\"frmcontroller\">".
298
+                                "<input type=\"hidden\" name=\"host\" value=\"".htmlspecialchars($host, ENT_COMPAT, $inputcharset)."\" />".
299
+                                "<input type=\"hidden\" name=\"port\" value=\"".htmlspecialchars($port, ENT_COMPAT, $inputcharset)."\" />".
300
+                                "<input type=\"hidden\" name=\"path\" value=\"".htmlspecialchars($path, ENT_COMPAT, $inputcharset)."\" />".
301
+                                "<input type=\"hidden\" name=\"id\" value=\"".htmlspecialchars($id, ENT_COMPAT, $inputcharset)."\" />".
302
+                                "<input type=\"hidden\" name=\"debug\" value=\"$debug\" />".
303
+                                "<input type=\"hidden\" name=\"username\" value=\"".htmlspecialchars($username, ENT_COMPAT, $inputcharset)."\" />".
304
+                                "<input type=\"hidden\" name=\"password\" value=\"".htmlspecialchars($password, ENT_COMPAT, $inputcharset)."\" />".
305
+                                "<input type=\"hidden\" name=\"authtype\" value=\"$authtype\" />".
306
+                                "<input type=\"hidden\" name=\"verifyhost\" value=\"$verifyhost\" />".
307
+                                "<input type=\"hidden\" name=\"verifypeer\" value=\"$verifypeer\" />".
308
+                                "<input type=\"hidden\" name=\"cainfo\" value=\"".htmlspecialchars($cainfo, ENT_COMPAT, $inputcharset)."\" />".
309
+                                "<input type=\"hidden\" name=\"proxy\" value=\"".htmlspecialchars($proxy, ENT_COMPAT, $inputcharset)."\" />".
310
+                                "<input type=\"hidden\" name=\"proxyuser\" value=\"".htmlspecialchars($proxyuser, ENT_COMPAT, $inputcharset)."\" />".
311
+                                "<input type=\"hidden\" name=\"proxypwd\" value=\"".htmlspecialchars($proxypwd, ENT_COMPAT, $inputcharset)."\" />".
312
+                                "<input type=\"hidden\" name=\"responsecompression\" value=\"$responsecompression\" />".
313
+                                "<input type=\"hidden\" name=\"requestcompression\" value=\"$requestcompression\" />".
314
+                                "<input type=\"hidden\" name=\"clientcookies\" value=\"".htmlspecialchars($clientcookies, ENT_COMPAT, $inputcharset)."\" />".
315
+                                "<input type=\"hidden\" name=\"protocol\" value=\"$protocol\" />".
316
+                                "<input type=\"hidden\" name=\"timeout\" value=\"".htmlspecialchars($timeout, ENT_COMPAT, $inputcharset)."\" />".
317
+                                "<input type=\"hidden\" name=\"method\" value=\"".htmlspecialchars($rec->scalarval(), ENT_COMPAT, \PhpXmlRpc\PhpXmlRpc::$xmlrpc_internalencoding)."\" />".
318
+                                "<input type=\"hidden\" name=\"wstype\" value=\"$wstype\" />".
319
+                                "<input type=\"hidden\" name=\"action\" value=\"describe\" />".
320
+                                "<input type=\"hidden\" name=\"run\" value=\"now\" />".
321 321
                                 "<input type=\"submit\" value=\"Describe\" /></form></td>");
322 322
                             //echo("</tr>\n");
323 323
 
@@ -344,7 +344,7 @@  discard block
 block discarded – undo
344 344
                     $r2 = $resp[1]->value();
345 345
 
346 346
                     echo "<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n";
347
-                    echo "<thead>\n<tr><th>Method</th><th>" . htmlspecialchars($method, ENT_COMPAT, $inputcharset) . "</th><th>&nbsp;</th><th>&nbsp;</th></tr>\n</thead>\n<tbody>\n";
347
+                    echo "<thead>\n<tr><th>Method</th><th>".htmlspecialchars($method, ENT_COMPAT, $inputcharset)."</th><th>&nbsp;</th><th>&nbsp;</th></tr>\n</thead>\n<tbody>\n";
348 348
                     $desc = htmlspecialchars($r1->scalarval(), ENT_COMPAT, \PhpXmlRpc\PhpXmlRpc::$xmlrpc_internalencoding);
349 349
                     if ($desc == "") {
350 350
                         $desc = "-";
@@ -354,41 +354,41 @@  discard block
 block discarded – undo
354 354
                     if ($r2->kindOf() != "array") {
355 355
                         echo "<tr><td class=\"oddrow\">Signature</td><td class=\"oddrow\">Unknown</td><td class=\"oddrow\">&nbsp;</td></tr>\n";
356 356
                     } else {
357
-                        foreach($r2 as $i => $x) {
357
+                        foreach ($r2 as $i => $x) {
358 358
                             $payload = "";
359 359
                             $alt_payload = "";
360
-                            if ($i + 1 % 2) {
360
+                            if ($i+1 % 2) {
361 361
                                 $class = ' class="oddrow"';
362 362
                             } else {
363 363
                                 $class = ' class="evenrow"';
364 364
                             }
365
-                            echo "<tr><td$class>Signature&nbsp;" . ($i + 1) . "</td><td$class>";
365
+                            echo "<tr><td$class>Signature&nbsp;".($i+1)."</td><td$class>";
366 366
                             if ($x->kindOf() == "array") {
367 367
                                 $ret = $x[0];
368
-                                echo "<code>OUT:&nbsp;" . htmlspecialchars($ret->scalarval(), ENT_COMPAT, \PhpXmlRpc\PhpXmlRpc::$xmlrpc_internalencoding) . "<br />IN: (";
369
-                                if ($x->count() > 1) {
370
-                                    foreach($x as $k => $y) {
368
+                                echo "<code>OUT:&nbsp;".htmlspecialchars($ret->scalarval(), ENT_COMPAT, \PhpXmlRpc\PhpXmlRpc::$xmlrpc_internalencoding)."<br />IN: (";
369
+                                if ($x->count()>1) {
370
+                                    foreach ($x as $k => $y) {
371 371
                                         if ($k == 0) continue;
372 372
                                         echo htmlspecialchars($y->scalarval(), ENT_COMPAT, \PhpXmlRpc\PhpXmlRpc::$xmlrpc_internalencoding);
373 373
                                         if ($wstype != 1) {
374 374
                                             $type = $y->scalarval();
375 375
                                             $payload .= '<param><value>';
376
-                                            switch($type) {
376
+                                            switch ($type) {
377 377
                                                 case 'undefined':
378 378
                                                     break;
379 379
                                                 case 'null';
380 380
                                                     $type = 'nil';
381 381
                                                     // fall thru intentionally
382 382
                                                 default:
383
-                                                    $payload .= '<' .
384
-                                                        htmlspecialchars($type, ENT_COMPAT, \PhpXmlRpc\PhpXmlRpc::$xmlrpc_internalencoding) .
385
-                                                        '></' . htmlspecialchars($type, ENT_COMPAT, \PhpXmlRpc\PhpXmlRpc::$xmlrpc_internalencoding) .
383
+                                                    $payload .= '<'.
384
+                                                        htmlspecialchars($type, ENT_COMPAT, \PhpXmlRpc\PhpXmlRpc::$xmlrpc_internalencoding).
385
+                                                        '></'.htmlspecialchars($type, ENT_COMPAT, \PhpXmlRpc\PhpXmlRpc::$xmlrpc_internalencoding).
386 386
                                                         '>';
387 387
                                             }
388 388
                                             $payload .= "</value></param>\n";
389 389
                                         }
390 390
                                         $alt_payload .= $y->scalarval();
391
-                                        if ($k < $x->count() - 1) {
391
+                                        if ($k<$x->count()-1) {
392 392
                                             $alt_payload .= ';';
393 393
                                             echo ", ";
394 394
                                         }
@@ -401,63 +401,63 @@  discard block
 block discarded – undo
401 401
                             echo '</td>';
402 402
                             // button to test this method
403 403
                             //$payload="<methodCall>\n<methodName>$method</methodName>\n<params>\n$payload</params>\n</methodCall>";
404
-                            echo "<td$class><form action=\"controller.php\" target=\"frmcontroller\" method=\"get\">" .
405
-                                "<input type=\"hidden\" name=\"host\" value=\"" . htmlspecialchars($host, ENT_COMPAT, $inputcharset) . "\" />" .
406
-                                "<input type=\"hidden\" name=\"port\" value=\"" . htmlspecialchars($port, ENT_COMPAT, $inputcharset) . "\" />" .
407
-                                "<input type=\"hidden\" name=\"path\" value=\"" . htmlspecialchars($path, ENT_COMPAT, $inputcharset) . "\" />" .
408
-                                "<input type=\"hidden\" name=\"id\" value=\"" . htmlspecialchars($id, ENT_COMPAT, $inputcharset) . "\" />" .
409
-                                "<input type=\"hidden\" name=\"debug\" value=\"$debug\" />" .
410
-                                "<input type=\"hidden\" name=\"username\" value=\"" . htmlspecialchars($username, ENT_COMPAT, $inputcharset) . "\" />" .
411
-                                "<input type=\"hidden\" name=\"password\" value=\"" . htmlspecialchars($password, ENT_COMPAT, $inputcharset) . "\" />" .
412
-                                "<input type=\"hidden\" name=\"authtype\" value=\"$authtype\" />" .
413
-                                "<input type=\"hidden\" name=\"verifyhost\" value=\"$verifyhost\" />" .
414
-                                "<input type=\"hidden\" name=\"verifypeer\" value=\"$verifypeer\" />" .
415
-                                "<input type=\"hidden\" name=\"cainfo\" value=\"" . htmlspecialchars($cainfo, ENT_COMPAT, $inputcharset) . "\" />" .
416
-                                "<input type=\"hidden\" name=\"proxy\" value=\"" . htmlspecialchars($proxy, ENT_COMPAT, $inputcharset) . "\" />" .
417
-                                "<input type=\"hidden\" name=\"proxyuser\" value=\"" . htmlspecialchars($proxyuser, ENT_COMPAT, $inputcharset) . "\" />" .
418
-                                "<input type=\"hidden\" name=\"proxypwd\" value=\"" . htmlspecialchars($proxypwd, ENT_COMPAT, $inputcharset) . "\" />" .
419
-                                "<input type=\"hidden\" name=\"responsecompression\" value=\"$responsecompression\" />" .
420
-                                "<input type=\"hidden\" name=\"requestcompression\" value=\"$requestcompression\" />" .
421
-                                "<input type=\"hidden\" name=\"clientcookies\" value=\"" . htmlspecialchars($clientcookies, ENT_COMPAT, $inputcharset) . "\" />" .
422
-                                "<input type=\"hidden\" name=\"protocol\" value=\"$protocol\" />" .
423
-                                "<input type=\"hidden\" name=\"timeout\" value=\"" . htmlspecialchars($timeout, ENT_COMPAT, $inputcharset) . "\" />" .
424
-                                "<input type=\"hidden\" name=\"method\" value=\"" . htmlspecialchars($method, ENT_COMPAT, $inputcharset) . "\" />" .
425
-                                "<input type=\"hidden\" name=\"methodpayload\" value=\"" . htmlspecialchars($payload, ENT_COMPAT, $inputcharset) . "\" />" .
426
-                                "<input type=\"hidden\" name=\"altmethodpayload\" value=\"" . htmlspecialchars($alt_payload, ENT_COMPAT, $inputcharset) . "\" />" .
427
-                                "<input type=\"hidden\" name=\"wstype\" value=\"$wstype\" />" .
404
+                            echo "<td$class><form action=\"controller.php\" target=\"frmcontroller\" method=\"get\">".
405
+                                "<input type=\"hidden\" name=\"host\" value=\"".htmlspecialchars($host, ENT_COMPAT, $inputcharset)."\" />".
406
+                                "<input type=\"hidden\" name=\"port\" value=\"".htmlspecialchars($port, ENT_COMPAT, $inputcharset)."\" />".
407
+                                "<input type=\"hidden\" name=\"path\" value=\"".htmlspecialchars($path, ENT_COMPAT, $inputcharset)."\" />".
408
+                                "<input type=\"hidden\" name=\"id\" value=\"".htmlspecialchars($id, ENT_COMPAT, $inputcharset)."\" />".
409
+                                "<input type=\"hidden\" name=\"debug\" value=\"$debug\" />".
410
+                                "<input type=\"hidden\" name=\"username\" value=\"".htmlspecialchars($username, ENT_COMPAT, $inputcharset)."\" />".
411
+                                "<input type=\"hidden\" name=\"password\" value=\"".htmlspecialchars($password, ENT_COMPAT, $inputcharset)."\" />".
412
+                                "<input type=\"hidden\" name=\"authtype\" value=\"$authtype\" />".
413
+                                "<input type=\"hidden\" name=\"verifyhost\" value=\"$verifyhost\" />".
414
+                                "<input type=\"hidden\" name=\"verifypeer\" value=\"$verifypeer\" />".
415
+                                "<input type=\"hidden\" name=\"cainfo\" value=\"".htmlspecialchars($cainfo, ENT_COMPAT, $inputcharset)."\" />".
416
+                                "<input type=\"hidden\" name=\"proxy\" value=\"".htmlspecialchars($proxy, ENT_COMPAT, $inputcharset)."\" />".
417
+                                "<input type=\"hidden\" name=\"proxyuser\" value=\"".htmlspecialchars($proxyuser, ENT_COMPAT, $inputcharset)."\" />".
418
+                                "<input type=\"hidden\" name=\"proxypwd\" value=\"".htmlspecialchars($proxypwd, ENT_COMPAT, $inputcharset)."\" />".
419
+                                "<input type=\"hidden\" name=\"responsecompression\" value=\"$responsecompression\" />".
420
+                                "<input type=\"hidden\" name=\"requestcompression\" value=\"$requestcompression\" />".
421
+                                "<input type=\"hidden\" name=\"clientcookies\" value=\"".htmlspecialchars($clientcookies, ENT_COMPAT, $inputcharset)."\" />".
422
+                                "<input type=\"hidden\" name=\"protocol\" value=\"$protocol\" />".
423
+                                "<input type=\"hidden\" name=\"timeout\" value=\"".htmlspecialchars($timeout, ENT_COMPAT, $inputcharset)."\" />".
424
+                                "<input type=\"hidden\" name=\"method\" value=\"".htmlspecialchars($method, ENT_COMPAT, $inputcharset)."\" />".
425
+                                "<input type=\"hidden\" name=\"methodpayload\" value=\"".htmlspecialchars($payload, ENT_COMPAT, $inputcharset)."\" />".
426
+                                "<input type=\"hidden\" name=\"altmethodpayload\" value=\"".htmlspecialchars($alt_payload, ENT_COMPAT, $inputcharset)."\" />".
427
+                                "<input type=\"hidden\" name=\"wstype\" value=\"$wstype\" />".
428 428
                                 "<input type=\"hidden\" name=\"action\" value=\"execute\" />";
429 429
                             if ($wstype != 1) {
430 430
                                 echo "<input type=\"submit\" value=\"Load method synopsis\" />";
431 431
                             }
432 432
                             echo "</form></td>\n";
433 433
 
434
-                            echo "<td$class><form action=\"controller.php\" target=\"frmcontroller\" method=\"get\">" .
435
-                                "<input type=\"hidden\" name=\"host\" value=\"" . htmlspecialchars($host, ENT_COMPAT, $inputcharset) . "\" />" .
436
-                                "<input type=\"hidden\" name=\"port\" value=\"" . htmlspecialchars($port, ENT_COMPAT, $inputcharset) . "\" />" .
437
-                                "<input type=\"hidden\" name=\"path\" value=\"" . htmlspecialchars($path, ENT_COMPAT, $inputcharset) . "\" />" .
438
-                                "<input type=\"hidden\" name=\"id\" value=\"" . htmlspecialchars($id, ENT_COMPAT, $inputcharset) . "\" />" .
439
-                                "<input type=\"hidden\" name=\"debug\" value=\"$debug\" />" .
440
-                                "<input type=\"hidden\" name=\"username\" value=\"" . htmlspecialchars($username, ENT_COMPAT, $inputcharset) . "\" />" .
441
-                                "<input type=\"hidden\" name=\"password\" value=\"" . htmlspecialchars($password, ENT_COMPAT, $inputcharset) . "\" />" .
442
-                                "<input type=\"hidden\" name=\"authtype\" value=\"$authtype\" />" .
443
-                                "<input type=\"hidden\" name=\"verifyhost\" value=\"$verifyhost\" />" .
444
-                                "<input type=\"hidden\" name=\"verifypeer\" value=\"$verifypeer\" />" .
445
-                                "<input type=\"hidden\" name=\"cainfo\" value=\"" . htmlspecialchars($cainfo, ENT_COMPAT, $inputcharset) . "\" />" .
446
-                                "<input type=\"hidden\" name=\"proxy\" value=\"" . htmlspecialchars($proxy, ENT_COMPAT, $inputcharset) . "\" />" .
447
-                                "<input type=\"hidden\" name=\"proxyuser\" value=\"" . htmlspecialchars($proxyuser, ENT_COMPAT, $inputcharset) . "\" />" .
448
-                                "<input type=\"hidden\" name=\"proxypwd\" value=\"" . htmlspecialchars($proxypwd, ENT_COMPAT, $inputcharset) . "\" />" .
449
-                                "<input type=\"hidden\" name=\"responsecompression\" value=\"$responsecompression\" />" .
450
-                                "<input type=\"hidden\" name=\"requestcompression\" value=\"$requestcompression\" />" .
451
-                                "<input type=\"hidden\" name=\"clientcookies\" value=\"" . htmlspecialchars($clientcookies, ENT_COMPAT, $inputcharset) . "\" />" .
452
-                                "<input type=\"hidden\" name=\"protocol\" value=\"$protocol\" />" .
453
-                                "<input type=\"hidden\" name=\"timeout\" value=\"" . htmlspecialchars($timeout, ENT_COMPAT, $inputcharset) . "\" />" .
454
-                                "<input type=\"hidden\" name=\"method\" value=\"" . htmlspecialchars($method, ENT_COMPAT, $inputcharset) . "\" />" .
455
-                                "<input type=\"hidden\" name=\"methodsig\" value=\"" . $i . "\" />" .
456
-                                "<input type=\"hidden\" name=\"methodpayload\" value=\"" . htmlspecialchars($payload, ENT_COMPAT, $inputcharset) . "\" />" .
457
-                                "<input type=\"hidden\" name=\"altmethodpayload\" value=\"" . htmlspecialchars($alt_payload, ENT_COMPAT, $inputcharset) . "\" />" .
458
-                                "<input type=\"hidden\" name=\"wstype\" value=\"$wstype\" />" .
459
-                                "<input type=\"hidden\" name=\"run\" value=\"now\" />" .
460
-                                "<input type=\"hidden\" name=\"action\" value=\"wrap\" />" .
434
+                            echo "<td$class><form action=\"controller.php\" target=\"frmcontroller\" method=\"get\">".
435
+                                "<input type=\"hidden\" name=\"host\" value=\"".htmlspecialchars($host, ENT_COMPAT, $inputcharset)."\" />".
436
+                                "<input type=\"hidden\" name=\"port\" value=\"".htmlspecialchars($port, ENT_COMPAT, $inputcharset)."\" />".
437
+                                "<input type=\"hidden\" name=\"path\" value=\"".htmlspecialchars($path, ENT_COMPAT, $inputcharset)."\" />".
438
+                                "<input type=\"hidden\" name=\"id\" value=\"".htmlspecialchars($id, ENT_COMPAT, $inputcharset)."\" />".
439
+                                "<input type=\"hidden\" name=\"debug\" value=\"$debug\" />".
440
+                                "<input type=\"hidden\" name=\"username\" value=\"".htmlspecialchars($username, ENT_COMPAT, $inputcharset)."\" />".
441
+                                "<input type=\"hidden\" name=\"password\" value=\"".htmlspecialchars($password, ENT_COMPAT, $inputcharset)."\" />".
442
+                                "<input type=\"hidden\" name=\"authtype\" value=\"$authtype\" />".
443
+                                "<input type=\"hidden\" name=\"verifyhost\" value=\"$verifyhost\" />".
444
+                                "<input type=\"hidden\" name=\"verifypeer\" value=\"$verifypeer\" />".
445
+                                "<input type=\"hidden\" name=\"cainfo\" value=\"".htmlspecialchars($cainfo, ENT_COMPAT, $inputcharset)."\" />".
446
+                                "<input type=\"hidden\" name=\"proxy\" value=\"".htmlspecialchars($proxy, ENT_COMPAT, $inputcharset)."\" />".
447
+                                "<input type=\"hidden\" name=\"proxyuser\" value=\"".htmlspecialchars($proxyuser, ENT_COMPAT, $inputcharset)."\" />".
448
+                                "<input type=\"hidden\" name=\"proxypwd\" value=\"".htmlspecialchars($proxypwd, ENT_COMPAT, $inputcharset)."\" />".
449
+                                "<input type=\"hidden\" name=\"responsecompression\" value=\"$responsecompression\" />".
450
+                                "<input type=\"hidden\" name=\"requestcompression\" value=\"$requestcompression\" />".
451
+                                "<input type=\"hidden\" name=\"clientcookies\" value=\"".htmlspecialchars($clientcookies, ENT_COMPAT, $inputcharset)."\" />".
452
+                                "<input type=\"hidden\" name=\"protocol\" value=\"$protocol\" />".
453
+                                "<input type=\"hidden\" name=\"timeout\" value=\"".htmlspecialchars($timeout, ENT_COMPAT, $inputcharset)."\" />".
454
+                                "<input type=\"hidden\" name=\"method\" value=\"".htmlspecialchars($method, ENT_COMPAT, $inputcharset)."\" />".
455
+                                "<input type=\"hidden\" name=\"methodsig\" value=\"".$i."\" />".
456
+                                "<input type=\"hidden\" name=\"methodpayload\" value=\"".htmlspecialchars($payload, ENT_COMPAT, $inputcharset)."\" />".
457
+                                "<input type=\"hidden\" name=\"altmethodpayload\" value=\"".htmlspecialchars($alt_payload, ENT_COMPAT, $inputcharset)."\" />".
458
+                                "<input type=\"hidden\" name=\"wstype\" value=\"$wstype\" />".
459
+                                "<input type=\"hidden\" name=\"run\" value=\"now\" />".
460
+                                "<input type=\"hidden\" name=\"action\" value=\"wrap\" />".
461 461
                                 "<input type=\"submit\" value=\"Generate method call stub code\" />";
462 462
                             echo "</form></td></tr>\n";
463 463
                         }
@@ -469,14 +469,14 @@  discard block
 block discarded – undo
469 469
                 case 'wrap':
470 470
                     $r1 = $resp[0]->value();
471 471
                     $r2 = $resp[1]->value();
472
-                    if ($r2->kindOf() != "array" || $r2->count() <= $methodsig) {
472
+                    if ($r2->kindOf() != "array" || $r2->count()<=$methodsig) {
473 473
                         echo "Error: signature unknown\n";
474 474
                     } else {
475 475
                         $mdesc = $r1->scalarval();
476 476
                         $encoder = new PhpXmlRpc\Encoder();
477 477
                         $msig = $encoder->decode($r2);
478 478
                         $msig = $msig[$methodsig];
479
-                        $proto = $protocol == 2 ? 'https' : ( $protocol == 1 ? 'http11' : '' );
479
+                        $proto = $protocol == 2 ? 'https' : ($protocol == 1 ? 'http11' : '');
480 480
                         if ($proxy == '' && $username == '' && !$requestcompression && !$responsecompression &&
481 481
                             $clientcookies == ''
482 482
                         ) {
@@ -490,11 +490,11 @@  discard block
 block discarded – undo
490 490
                             $prefix = 'xmlrpc';
491 491
                         }
492 492
                         $wrapper = new PhpXmlRpc\Wrapper();
493
-                        $code = $wrapper->buildWrapMethodSource($client, $method, array('timeout' => $timeout, 'protocol' => $proto, 'simple_client_copy' => $opts, 'prefix' => $prefix), str_replace('.', '_', $prefix . '_' . $method), $msig, $mdesc);
493
+                        $code = $wrapper->buildWrapMethodSource($client, $method, array('timeout' => $timeout, 'protocol' => $proto, 'simple_client_copy' => $opts, 'prefix' => $prefix), str_replace('.', '_', $prefix.'_'.$method), $msig, $mdesc);
494 494
                         //if ($code)
495 495
                         //{
496 496
                         echo "<div id=\"phpcode\">\n";
497
-                        highlight_string("<?php\n" . $code['docstring'] . $code['source'] . '?>');
497
+                        highlight_string("<?php\n".$code['docstring'].$code['source'].'?>');
498 498
                         echo "\n</div>";
499 499
                         //}
500 500
                         //else
@@ -505,7 +505,7 @@  discard block
 block discarded – undo
505 505
                     break;
506 506
 
507 507
                 case 'execute':
508
-                    echo '<div id="response"><h2>Response:</h2>' . htmlspecialchars($response->serialize()) . '</div>';
508
+                    echo '<div id="response"><h2>Response:</h2>'.htmlspecialchars($response->serialize()).'</div>';
509 509
                     break;
510 510
 
511 511
                 default: // give a warning
@@ -565,4 +565,4 @@  discard block
 block discarded – undo
565 565
 ?>
566 566
 </body>
567 567
 </html>
568
-<?php if (getenv('TESTMODE') === 'true') require_once __DIR__ . "/../demo/server/_append.php"; ?>
568
+<?php if (getenv('TESTMODE') === 'true') require_once __DIR__."/../demo/server/_append.php"; ?>
Please login to merge, or discard this patch.
Braces   +16 added lines, -4 removed lines patch added patch discarded remove patch
@@ -9,7 +9,9 @@  discard block
 block discarded – undo
9 9
  * @todo be smarter in creating client stub for proxy/auth cases: only set appropriate property of client obj
10 10
  **/
11 11
 
12
-if (getenv('TESTMODE') === 'true') require_once __DIR__ . "/../demo/server/_prepend.php";
12
+if (getenv('TESTMODE') === 'true') {
13
+    require_once __DIR__ . "/../demo/server/_prepend.php";
14
+}
13 15
 
14 16
 header('Content-Type: text/html; charset=utf-8');
15 17
 
@@ -19,7 +21,12 @@  discard block
 block discarded – undo
19 21
 <html xmlns="http://www.w3.org/1999/xhtml" lang="en">
20 22
 <head>
21 23
     <link rel="icon" type="image/vnd.microsoft.icon" href="favicon.ico">
22
-    <title><?php if (defined('DEFAULT_WSTYPE') && DEFAULT_WSTYPE == 1) echo 'JSONRPC'; else echo 'XMLRPC'; ?> Debugger</title>
24
+    <title><?php if (defined('DEFAULT_WSTYPE') && DEFAULT_WSTYPE == 1) {
25
+    echo 'JSONRPC';
26
+} else {
27
+    echo 'XMLRPC';
28
+}
29
+?> Debugger</title>
23 30
     <meta name="robots" content="index,nofollow"/>
24 31
     <style type="text/css">
25 32
         <!--
@@ -368,7 +375,9 @@  discard block
 block discarded – undo
368 375
                                 echo "<code>OUT:&nbsp;" . htmlspecialchars($ret->scalarval(), ENT_COMPAT, \PhpXmlRpc\PhpXmlRpc::$xmlrpc_internalencoding) . "<br />IN: (";
369 376
                                 if ($x->count() > 1) {
370 377
                                     foreach($x as $k => $y) {
371
-                                        if ($k == 0) continue;
378
+                                        if ($k == 0) {
379
+                                            continue;
380
+                                        }
372 381
                                         echo htmlspecialchars($y->scalarval(), ENT_COMPAT, \PhpXmlRpc\PhpXmlRpc::$xmlrpc_internalencoding);
373 382
                                         if ($wstype != 1) {
374 383
                                             $type = $y->scalarval();
@@ -565,4 +574,7 @@  discard block
 block discarded – undo
565 574
 ?>
566 575
 </body>
567 576
 </html>
568
-<?php if (getenv('TESTMODE') === 'true') require_once __DIR__ . "/../demo/server/_append.php"; ?>
577
+<?php if (getenv('TESTMODE') === 'true') {
578
+    require_once __DIR__ . "/../demo/server/_append.php";
579
+}
580
+?>
Please login to merge, or discard this patch.
demo/client/_prepend.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@  discard block
 block discarded – undo
14 14
 error_reporting(E_ALL);
15 15
 
16 16
 // Use the custom class autoloader. These two lines not needed when the phpxmlrpc library is installed using Composer
17
-include_once __DIR__ . '/../../src/Autoloader.php';
17
+include_once __DIR__.'/../../src/Autoloader.php';
18 18
 PhpXmlRpc\Autoloader::register();
19 19
 
20 20
 // Let unit tests run against localhost, 'plain' demos against a known public server
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
         chmod($GLOBALS['PHPUNIT_COVERAGE_DATA_DIRECTORY'], 0777);
34 34
     }
35 35
 
36
-    include_once __DIR__ . "/../../vendor/phpunit/phpunit-selenium/PHPUnit/Extensions/SeleniumCommon/prepend.php";
36
+    include_once __DIR__."/../../vendor/phpunit/phpunit-selenium/PHPUnit/Extensions/SeleniumCommon/prepend.php";
37 37
 }
38 38
 
39 39
 // A helper for cli vs web output:
Please login to merge, or discard this patch.
demo/client/introspect.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-require_once __DIR__ . "/_prepend.php";
3
+require_once __DIR__."/_prepend.php";
4 4
 
5 5
 output('<html lang="en">
6 6
 <head><title>xmlrpc - Introspect demo</title></head>
@@ -14,13 +14,13 @@  discard block
 block discarded – undo
14 14
 function display_error($r)
15 15
 {
16 16
     output("An error occurred: ");
17
-    output("Code: " . $r->faultCode() . " Reason: '" . $r->faultString() . "'<br/>");
17
+    output("Code: ".$r->faultCode()." Reason: '".$r->faultString()."'<br/>");
18 18
 }
19 19
 
20 20
 $client = new PhpXmlRpc\Client(XMLRPCSERVER);
21 21
 
22 22
 // First off, let's retrieve the list of methods available on the remote server
23
-output("<h3>methods available at http://" . $client->server . $client->path . "</h3>\n");
23
+output("<h3>methods available at http://".$client->server.$client->path."</h3>\n");
24 24
 $req = new PhpXmlRpc\Request('system.listMethods');
25 25
 $resp = $client->send($req);
26 26
 
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
 
32 32
     // Then, retrieve the signature and help text of each available method
33 33
     foreach ($v as $methodName) {
34
-        output("<h4>" . htmlspecialchars($methodName->scalarval()) . "</h4>\n");
34
+        output("<h4>".htmlspecialchars($methodName->scalarval())."</h4>\n");
35 35
         // build messages first, add params later
36 36
         $m1 = new PhpXmlRpc\Request('system.methodHelp');
37 37
         $m2 = new PhpXmlRpc\Request('system.methodSignature');
@@ -62,13 +62,13 @@  discard block
 block discarded – undo
62 62
             if ($val->kindOf() == "array") {
63 63
                 foreach ($val as $x) {
64 64
                     $ret = $x[0];
65
-                    output("<code>" . htmlspecialchars($ret->scalarval()) . " "
66
-                        . htmlspecialchars($methodName->scalarval()) . "(");
67
-                    if ($x->count() > 1) {
68
-                        for ($k = 1; $k < $x->count(); $k++) {
65
+                    output("<code>".htmlspecialchars($ret->scalarval())." "
66
+                        . htmlspecialchars($methodName->scalarval())."(");
67
+                    if ($x->count()>1) {
68
+                        for ($k = 1; $k<$x->count(); $k++) {
69 69
                             $y = $x[$k];
70 70
                             output(htmlspecialchars($y->scalarval()));
71
-                            if ($k < $x->count() - 1) {
71
+                            if ($k<$x->count()-1) {
72 72
                                 output(", ");
73 73
                             }
74 74
                         }
@@ -85,4 +85,4 @@  discard block
 block discarded – undo
85 85
 
86 86
 output("</body></html>\n");
87 87
 
88
-require_once __DIR__ . "/_append.php";
88
+require_once __DIR__."/_append.php";
Please login to merge, or discard this patch.
lib/xmlrpcs.inc 1 patch
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
      */
55 55
     public function echoInput()
56 56
     {
57
-        $r = new PhpXmlRpc\Response(new PhpXmlRpc\Value("'Aha said I: '" . file_get_contents('php://input'), 'string'));
57
+        $r = new PhpXmlRpc\Response(new PhpXmlRpc\Value("'Aha said I: '".file_get_contents('php://input'), 'string'));
58 58
         print $r->serialize();
59 59
     }
60 60
 
@@ -65,12 +65,12 @@  discard block
 block discarded – undo
65 65
      */
66 66
     public function __get($name)
67 67
     {
68
-        switch($name) {
68
+        switch ($name) {
69 69
             case 'dmap':
70 70
                 return $this->dmap;
71 71
             default:
72 72
                 $trace = debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS);
73
-                trigger_error('Undefined property via __get(): ' . $name . ' in ' . $trace[0]['file'] . ' on line ' .
73
+                trigger_error('Undefined property via __get(): '.$name.' in '.$trace[0]['file'].' on line '.
74 74
                     $trace[0]['line'], E_USER_NOTICE);
75 75
                 return null;
76 76
         }
@@ -97,30 +97,30 @@  discard block
 block discarded – undo
97 97
     Server::xmlrpc_debugmsg($m);
98 98
 }
99 99
 
100
-function _xmlrpcs_getCapabilities($server, $m=null)
100
+function _xmlrpcs_getCapabilities($server, $m = null)
101 101
 {
102 102
     return Server::_xmlrpcs_getCapabilities($server, $m);
103 103
 }
104 104
 
105
-$_xmlrpcs_listMethods_sig=array(array(\PhpXmlRpc\Value::$xmlrpcArray));
106
-$_xmlrpcs_listMethods_doc='This method lists all the methods that the XML-RPC server knows how to dispatch';
107
-$_xmlrpcs_listMethods_sdoc=array(array('list of method names'));
108
-function _xmlrpcs_listMethods($server, $m=null) // if called in plain php values mode, second param is missing
105
+$_xmlrpcs_listMethods_sig = array(array(\PhpXmlRpc\Value::$xmlrpcArray));
106
+$_xmlrpcs_listMethods_doc = 'This method lists all the methods that the XML-RPC server knows how to dispatch';
107
+$_xmlrpcs_listMethods_sdoc = array(array('list of method names'));
108
+function _xmlrpcs_listMethods($server, $m = null) // if called in plain php values mode, second param is missing
109 109
 {
110 110
     return Server::_xmlrpcs_listMethods($server, $m);
111 111
 }
112 112
 
113
-$_xmlrpcs_methodSignature_sig=array(array(\PhpXmlRpc\Value::$xmlrpcArray, $GLOBALS['xmlrpcString']));
114
-$_xmlrpcs_methodSignature_doc='Returns an array of known signatures (an array of arrays) for the method name passed. If no signatures are known, returns a none-array (test for type != array to detect missing signature)';
115
-$_xmlrpcs_methodSignature_sdoc=array(array('list of known signatures, each sig being an array of xmlrpc type names', 'name of method to be described'));
113
+$_xmlrpcs_methodSignature_sig = array(array(\PhpXmlRpc\Value::$xmlrpcArray, $GLOBALS['xmlrpcString']));
114
+$_xmlrpcs_methodSignature_doc = 'Returns an array of known signatures (an array of arrays) for the method name passed. If no signatures are known, returns a none-array (test for type != array to detect missing signature)';
115
+$_xmlrpcs_methodSignature_sdoc = array(array('list of known signatures, each sig being an array of xmlrpc type names', 'name of method to be described'));
116 116
 function _xmlrpcs_methodSignature($server, $m)
117 117
 {
118 118
     return Server::_xmlrpcs_methodSignature($server, $m);
119 119
 }
120 120
 
121
-$_xmlrpcs_methodHelp_sig=array(array($GLOBALS['xmlrpcString'], $GLOBALS['xmlrpcString']));
122
-$_xmlrpcs_methodHelp_doc='Returns help text if defined for the method passed, otherwise returns an empty string';
123
-$_xmlrpcs_methodHelp_sdoc=array(array('method description', 'name of the method to be described'));
121
+$_xmlrpcs_methodHelp_sig = array(array($GLOBALS['xmlrpcString'], $GLOBALS['xmlrpcString']));
122
+$_xmlrpcs_methodHelp_doc = 'Returns help text if defined for the method passed, otherwise returns an empty string';
123
+$_xmlrpcs_methodHelp_sdoc = array(array('method description', 'name of the method to be described'));
124 124
 function _xmlrpcs_methodHelp($server, $m)
125 125
 {
126 126
     return Server::_xmlrpcs_methodHelp($server, $m);
Please login to merge, or discard this patch.