Passed
Push — master ( 79eb3e...bae601 )
by Gaetano
05:42
created
debugger/controller.php 1 patch
Braces   +16 added lines, -4 removed lines patch added patch discarded remove patch
@@ -66,7 +66,12 @@  discard block
 block discarded – undo
66 66
 <html lang="en">
67 67
 <head>
68 68
     <link rel="icon" type="image/vnd.microsoft.icon" href="favicon.ico">
69
-    <title><?php if (defined('DEFAULT_WSTYPE') && DEFAULT_WSTYPE == 1) echo 'JSON-RPC'; else echo 'XML-RPC'; ?> Debugger</title>
69
+    <title><?php if (defined('DEFAULT_WSTYPE') && DEFAULT_WSTYPE == 1) {
70
+    echo 'JSON-RPC';
71
+} else {
72
+    echo 'XML-RPC';
73
+}
74
+?> Debugger</title>
70 75
     <meta name="robots" content="index,nofollow"/>
71 76
     <script type="text/javascript" language="Javascript">
72 77
         if (window.name != 'frmcontroller')
@@ -266,19 +271,26 @@  discard block
 block discarded – undo
266 271
     </script>
267 272
 </head>
268 273
 <body
269
-    onload="<?php if ($hasjsonrpcclient) echo "switchtransport($wstype); " ?>switchaction(); switchssl(); switchauth(); swicthcainfo();<?php if ($run) {
274
+    onload="<?php if ($hasjsonrpcclient) {
275
+    echo "switchtransport($wstype); " ?>switchaction(); switchssl(); switchauth(); swicthcainfo();<?php if ($run) {
270 276
         echo ' document.frmaction.submit();';
277
+}
271 278
     } ?>">
272 279
 <h1>XML-RPC
273 280
 <?php if ($hasjsonrpcclient) {
274 281
     echo '<form name="frmxmlrpc" style="display: inline;" action="."><input name="yes" type="radio" onclick="switchtransport(0);"';
275 282
     // q: does this if make sense at all?
276
-    if (!class_exists('\PhpXmlRpc\Client')) echo ' disabled="disabled"';
283
+    if (!class_exists('\PhpXmlRpc\Client')) {
284
+        echo ' disabled="disabled"';
285
+    }
277 286
     echo ' /></form> / <form name="frmjsonrpc" style="display: inline;" action="."><input name="yes" type="radio" onclick="switchtransport(1);"/></form>
278 287
     JSON-RPC';
279 288
 } ?>
280 289
 Debugger</h1><h3>(based on <a href="https://gggeek.github.io/phpxmlrpc/">PHPXMLRPC</a>, ver. <?php echo htmlspecialchars(\PhpXmlRpc\PhpXmlRpc::$xmlrpcVersion)?>
281
-<?php if (class_exists('\PhpXmlRpc\JsonRpc\PhpJsonRpc')) echo ' and <a href="https://gggeek.github.io/phpxmlrpc-jsonrpc/">PHPJOSNRPC</a>, ver. ' . htmlspecialchars(\PhpXmlRpc\JsonRpc\PhpJsonRpc::$jsonrpcVersion); ?>)</h3>
290
+<?php if (class_exists('\PhpXmlRpc\JsonRpc\PhpJsonRpc')) {
291
+    echo ' and <a href="https://gggeek.github.io/phpxmlrpc-jsonrpc/">PHPJOSNRPC</a>, ver. ' . htmlspecialchars(\PhpXmlRpc\JsonRpc\PhpJsonRpc::$jsonrpcVersion);
292
+}
293
+?>)</h3>
282 294
 <form name="frmaction" method="get" action="action.php" target="frmaction" onSubmit="switchFormMethod();">
283 295
 
284 296
     <table id="serverblock">
Please login to merge, or discard this patch.