@@ -10,7 +10,7 @@ discard block |
||
10 | 10 | * @license code licensed under the BSD License: see file license.txt |
11 | 11 | */ |
12 | 12 | |
13 | -require_once __DIR__ . "/_prepend.php"; |
|
13 | +require_once __DIR__."/_prepend.php"; |
|
14 | 14 | |
15 | 15 | // *** NB: WE BLOCK THIS FROM RUNNING BY DEFAULT IN CASE ACCESS IS GRANTED TO IT IN PRODUCTION BY MISTAKE *** |
16 | 16 | // Comment out the following safeguard if you want to use it as is, but remember: this is an open relay !!! |
@@ -35,7 +35,7 @@ discard block |
||
35 | 35 | // NB: here we should validate the received url, using f.e. a whitelist... |
36 | 36 | $client = new PhpXmlRpc\Client($url); |
37 | 37 | |
38 | - if ($req->getNumParams() > 3) { |
|
38 | + if ($req->getNumParams()>3) { |
|
39 | 39 | // we have to set some options onto the client. |
40 | 40 | // Note that if we do not untaint the received values, warnings might be generated... |
41 | 41 | $options = $encoder->decode($req->getParam(3)); |
@@ -57,7 +57,7 @@ discard block |
||
57 | 57 | $client->setSSLVerifyPeer($val); |
58 | 58 | break; |
59 | 59 | case 'Timeout': |
60 | - $timeout = (integer)$val; |
|
60 | + $timeout = (integer) $val; |
|
61 | 61 | break; |
62 | 62 | } // switch |
63 | 63 | } |
@@ -75,7 +75,7 @@ discard block |
||
75 | 75 | } |
76 | 76 | |
77 | 77 | // add debug info into response we give back to caller |
78 | - PhpXmlRpc\Server::xmlrpc_debugmsg("Sending to server $url the payload: " . $req->serialize()); |
|
78 | + PhpXmlRpc\Server::xmlrpc_debugmsg("Sending to server $url the payload: ".$req->serialize()); |
|
79 | 79 | |
80 | 80 | return $client->send($req, $timeout); |
81 | 81 | } |