Passed
Push — master ( e2ee8e...6a6cc8 )
by Gaetano
06:36
created
tests/5ServerTest.php 1 patch
Braces   +6 added lines, -4 removed lines patch added patch discarded remove patch
@@ -108,14 +108,16 @@
 block discarded – undo
108 108
 
109 109
         $this->coverageScriptUrl = 'http://' . $this->args['HTTPSERVER'] . preg_replace('|/tests/index\.php(\?.*)?|', '/tests/phpunit_coverage.php', $this->args['HTTPURI']);
110 110
 
111
-        if ($this->args['DEBUG'] == 1)
112
-            ob_start();
111
+        if ($this->args['DEBUG'] == 1) {
112
+                    ob_start();
113
+        }
113 114
     }
114 115
 
115 116
     protected function tear_down()
116 117
     {
117
-        if ($this->args['DEBUG'] != 1)
118
-            return;
118
+        if ($this->args['DEBUG'] != 1) {
119
+                    return;
120
+        }
119 121
         $out = ob_get_clean();
120 122
         $status = $this->getStatus();
121 123
         if ($status == BaseTestRunner::STATUS_ERROR
Please login to merge, or discard this patch.
demo/server/methodProviders/testsuite.php 1 patch
Braces   +6 added lines, -5 removed lines patch added patch discarded remove patch
@@ -66,11 +66,12 @@
 block discarded – undo
66 66
     $a = $req->getParam(0);
67 67
     $b = $req->getParam(1);
68 68
 
69
-    if ($a->scalartyp() == Value::$xmlrpcNull)
70
-        return new Response(new Value(plain_findstate($b->scalarval())));
71
-    else
72
-        return new Response(new Value(plain_findstate($a->scalarval())));
73
-}
69
+    if ($a->scalartyp() == Value::$xmlrpcNull) {
70
+            return new Response(new Value(plain_findstate($b->scalarval())));
71
+    } else {
72
+            return new Response(new Value(plain_findstate($a->scalarval())));
73
+    }
74
+    }
74 75
 
75 76
 return array(
76 77
     "tests.getallheaders" => array(
Please login to merge, or discard this patch.