Passed
Push — master ( 4acd79...314870 )
by Gaetano
08:37
created
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.