Passed
Push — master ( f77b3c...bb5bf0 )
by Gaetano
09:25
created
tests/5ServerTest.php 1 patch
Braces   +6 added lines, -4 removed lines patch added patch discarded remove patch
@@ -109,14 +109,16 @@
 block discarded – undo
109 109
 
110 110
         $this->coverageScriptUrl = 'http://' . $this->args['HTTPSERVER'] . '/' . str_replace('/demo/server/server.php', 'tests/phpunit_coverage.php', $this->args['HTTPURI']);
111 111
 
112
-        if ($this->args['DEBUG'] == 1)
113
-            ob_start();
112
+        if ($this->args['DEBUG'] == 1) {
113
+                    ob_start();
114
+        }
114 115
     }
115 116
 
116 117
     protected function tear_down()
117 118
     {
118
-        if ($this->args['DEBUG'] != 1)
119
-            return;
119
+        if ($this->args['DEBUG'] != 1) {
120
+                    return;
121
+        }
120 122
         $out = ob_get_clean();
121 123
         $status = $this->getStatus();
122 124
         if ($status == BaseTestRunner::STATUS_ERROR
Please login to merge, or discard this patch.
debugger/controller.php 1 patch
Braces   +6 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,12 @@
 block discarded – undo
41 41
 <html lang="en">
42 42
 <head>
43 43
     <link rel="icon" type="image/vnd.microsoft.icon" href="favicon.ico">
44
-    <title><?php if (defined('DEFAULT_WSTYPE') && DEFAULT_WSTYPE == 1) echo 'JSONRPC'; else echo 'XMLRPC'; ?> Debugger</title>
44
+    <title><?php if (defined('DEFAULT_WSTYPE') && DEFAULT_WSTYPE == 1) {
45
+    echo 'JSONRPC';
46
+} else {
47
+    echo 'XMLRPC';
48
+}
49
+?> Debugger</title>
45 50
     <meta name="robots" content="index,nofollow"/>
46 51
     <script type="text/javascript" language="Javascript">
47 52
         if (window.name != 'frmcontroller')
Please login to merge, or discard this patch.
debugger/action.php 1 patch
Braces   +9 added lines, -2 removed lines patch added patch discarded remove patch
@@ -15,7 +15,12 @@  discard block
 block discarded – undo
15 15
 <html lang="en">
16 16
 <head>
17 17
     <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>
18
+    <title><?php if (defined('DEFAULT_WSTYPE') && DEFAULT_WSTYPE == 1) {
19
+    echo 'JSONRPC';
20
+} else {
21
+    echo 'XMLRPC';
22
+}
23
+?> Debugger</title>
19 24
     <meta name="robots" content="index,nofollow"/>
20 25
     <style type="text/css">
21 26
         <!--
@@ -370,7 +375,9 @@  discard block
 block discarded – undo
370 375
                                 echo "<code>OUT:&nbsp;" . htmlspecialchars($ret->scalarval(), ENT_COMPAT, \PhpXmlRpc\PhpXmlRpc::$xmlrpc_internalencoding) . "<br />IN: (";
371 376
                                 if ($x->count() > 1) {
372 377
                                     foreach($x as $k => $y) {
373
-                                        if ($k == 0) continue;
378
+                                        if ($k == 0) {
379
+                                            continue;
380
+                                        }
374 381
                                         echo htmlspecialchars($y->scalarval(), ENT_COMPAT, \PhpXmlRpc\PhpXmlRpc::$xmlrpc_internalencoding);
375 382
                                         if ($wstype != 1) {
376 383
                                             $type = $y->scalarval();
Please login to merge, or discard this patch.