@@ -1,4 +1,4 @@ discard block |
||
1 | -<?php require_once __DIR__ . "/_bootstrap.php"; ?><html lang="en"> |
|
1 | +<?php require_once __DIR__."/_bootstrap.php"; ?><html lang="en"> |
|
2 | 2 | <head><title>xmlrpc - Getstatename demo</title></head> |
3 | 3 | <body> |
4 | 4 | <h1>Getstatename demo</h1> |
@@ -11,30 +11,30 @@ discard block |
||
11 | 11 | <?php |
12 | 12 | |
13 | 13 | if (isset($_POST["stateno"]) && $_POST["stateno"] != "") { |
14 | - $stateNo = (integer)$_POST["stateno"]; |
|
14 | + $stateNo = (integer) $_POST["stateno"]; |
|
15 | 15 | $encoder = new PhpXmlRpc\Encoder(); |
16 | 16 | $req = new PhpXmlRpc\Request('examples.getStateName', |
17 | 17 | array($encoder->encode($stateNo)) |
18 | 18 | ); |
19 | - print "Sending the following request:<pre>\n\n" . htmlentities($req->serialize()) . "\n\n</pre>Debug info of server data follows...\n\n"; |
|
19 | + print "Sending the following request:<pre>\n\n".htmlentities($req->serialize())."\n\n</pre>Debug info of server data follows...\n\n"; |
|
20 | 20 | $client = new PhpXmlRpc\Client(XMLRPCSERVER); |
21 | 21 | $client->setDebug(1); |
22 | 22 | $r = $client->send($req); |
23 | 23 | if (!$r->faultCode()) { |
24 | 24 | $v = $r->value(); |
25 | - print "<br/>State number <b>" . $stateNo . "</b> is <b>" |
|
26 | - . htmlspecialchars($encoder->decode($v)) . "</b><br/><br/>"; |
|
25 | + print "<br/>State number <b>".$stateNo."</b> is <b>" |
|
26 | + . htmlspecialchars($encoder->decode($v))."</b><br/><br/>"; |
|
27 | 27 | } else { |
28 | 28 | print "An error occurred: "; |
29 | - print "Code: " . htmlspecialchars($r->faultCode()) |
|
30 | - . " Reason: '" . htmlspecialchars($r->faultString()) . "'</pre><br/>"; |
|
29 | + print "Code: ".htmlspecialchars($r->faultCode()) |
|
30 | + . " Reason: '".htmlspecialchars($r->faultString())."'</pre><br/>"; |
|
31 | 31 | } |
32 | 32 | } else { |
33 | 33 | $stateNo = ""; |
34 | 34 | } |
35 | 35 | |
36 | 36 | print "<form action=\"getstatename.php\" method=\"POST\"> |
37 | -<input name=\"stateno\" value=\"" . $stateNo . "\"><input type=\"submit\" value=\"go\" name=\"submit\"></form> |
|
37 | +<input name=\"stateno\" value=\"" . $stateNo."\"><input type=\"submit\" value=\"go\" name=\"submit\"></form> |
|
38 | 38 | <p>Enter a state number to query its name</p>"; |
39 | 39 | |
40 | 40 | ?> |
@@ -1,4 +1,4 @@ |
||
1 | -<?php require_once __DIR__ . "/_bootstrap.php"; ?><html lang="en"> |
|
1 | +<?php require_once __DIR__."/_bootstrap.php"; ?><html lang="en"> |
|
2 | 2 | <head><title>xmlrpc - Proxy demo</title></head> |
3 | 3 | <body> |
4 | 4 | <h1>proxy demo</h1> |
@@ -1,8 +1,8 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -include_once __DIR__ . '/parse_args.php'; |
|
3 | +include_once __DIR__.'/parse_args.php'; |
|
4 | 4 | |
5 | -include_once __DIR__ . '/PolyfillTestCase.php'; |
|
5 | +include_once __DIR__.'/PolyfillTestCase.php'; |
|
6 | 6 | |
7 | 7 | abstract class PhpXmlRpc_LocalFileTestCase extends PhpXmlRpc_PolyfillTestCase |
8 | 8 | { |
@@ -17,7 +17,7 @@ discard block |
||
17 | 17 | |
18 | 18 | public function _run($result = NULL) |
19 | 19 | { |
20 | - $this->testId = get_class($this) . '__' . $this->getName(); |
|
20 | + $this->testId = get_class($this).'__'.$this->getName(); |
|
21 | 21 | |
22 | 22 | if ($result === NULL) { |
23 | 23 | $result = $this->createResult(); |
@@ -45,7 +45,7 @@ discard block |
||
45 | 45 | |
46 | 46 | protected function request($file, $method = 'GET', $payload = '', $emptyPageOk = false) |
47 | 47 | { |
48 | - $url = $this->baseUrl . $file; |
|
48 | + $url = $this->baseUrl.$file; |
|
49 | 49 | |
50 | 50 | $ch = curl_init($url); |
51 | 51 | curl_setopt_array($ch, array( |
@@ -63,7 +63,7 @@ discard block |
||
63 | 63 | { |
64 | 64 | curl_setopt($ch, CURLOPT_COOKIE, 'PHPUNIT_SELENIUM_TEST_ID=true'); |
65 | 65 | } |
66 | - if ($this->args['DEBUG'] > 0) { |
|
66 | + if ($this->args['DEBUG']>0) { |
|
67 | 67 | curl_setopt($ch, CURLOPT_VERBOSE, 1); |
68 | 68 | } |
69 | 69 | $page = curl_exec($ch); |