@@ -9,7 +9,7 @@ discard block |
||
9 | 9 | * Please do not copy this file verbatim into your production server. |
10 | 10 | **/ |
11 | 11 | |
12 | -require_once __DIR__ . "/_bootstrap.php"; |
|
12 | +require_once __DIR__."/_bootstrap.php"; |
|
13 | 13 | |
14 | 14 | // out-of-band information: let the client manipulate the server operations. |
15 | 15 | // we do this to help the testsuite script: do not reproduce in production! |
@@ -19,7 +19,7 @@ discard block |
||
19 | 19 | mkdir($GLOBALS['PHPUNIT_COVERAGE_DATA_DIRECTORY']); |
20 | 20 | } |
21 | 21 | |
22 | - include_once __DIR__ . "/../../vendor/phpunit/phpunit-selenium/PHPUnit/Extensions/SeleniumCommon/prepend.php"; |
|
22 | + include_once __DIR__."/../../vendor/phpunit/phpunit-selenium/PHPUnit/Extensions/SeleniumCommon/prepend.php"; |
|
23 | 23 | } |
24 | 24 | |
25 | 25 | use PhpXmlRpc\Value; |
@@ -116,11 +116,11 @@ discard block |
||
116 | 116 | // extract the value of the state number |
117 | 117 | $snv = $sno->scalarval(); |
118 | 118 | // look it up in our array (zero-based) |
119 | - if (isset($stateNames[$snv - 1])) { |
|
120 | - $stateName = $stateNames[$snv - 1]; |
|
119 | + if (isset($stateNames[$snv-1])) { |
|
120 | + $stateName = $stateNames[$snv-1]; |
|
121 | 121 | } else { |
122 | 122 | // not there, so complain |
123 | - $err = "I don't have a state for the index '" . $snv . "'"; |
|
123 | + $err = "I don't have a state for the index '".$snv."'"; |
|
124 | 124 | } |
125 | 125 | |
126 | 126 | // if we generated an error, create an error return response |
@@ -146,11 +146,11 @@ discard block |
||
146 | 146 | { |
147 | 147 | global $stateNames; |
148 | 148 | |
149 | - if (isset($stateNames[$stateNo - 1])) { |
|
150 | - return $stateNames[$stateNo - 1]; |
|
149 | + if (isset($stateNames[$stateNo-1])) { |
|
150 | + return $stateNames[$stateNo-1]; |
|
151 | 151 | } else { |
152 | 152 | // not, there so complain |
153 | - throw new Exception("I don't have a state for the index '" . $stateNo . "'", PhpXmlRpc\PhpXmlRpc::$xmlrpcerruser); |
|
153 | + throw new Exception("I don't have a state for the index '".$stateNo."'", PhpXmlRpc\PhpXmlRpc::$xmlrpcerruser); |
|
154 | 154 | } |
155 | 155 | } |
156 | 156 | |
@@ -180,17 +180,17 @@ discard block |
||
180 | 180 | eval($findstate9_sig['source']); |
181 | 181 | |
182 | 182 | $findstate10_sig = array( |
183 | - "function" => function ($req) { return findState($req); }, |
|
183 | + "function" => function($req) { return findState($req); }, |
|
184 | 184 | "signature" => $findstate_sig, |
185 | 185 | "docstring" => $findstate_doc, |
186 | 186 | ); |
187 | 187 | |
188 | -$findstate11_sig = $wrapper->wrapPhpFunction(function ($stateNo) { return inner_findstate($stateNo); }); |
|
188 | +$findstate11_sig = $wrapper->wrapPhpFunction(function($stateNo) { return inner_findstate($stateNo); }); |
|
189 | 189 | |
190 | 190 | $c = new xmlrpcServerMethodsContainer; |
191 | 191 | $moreSignatures = $wrapper->wrapPhpClass($c, array('prefix' => 'tests.', 'method_type' => 'all')); |
192 | 192 | |
193 | -$returnObj_sig = $wrapper->wrapPhpFunction(array($c, 'returnObject'), '', array('encode_php_objs' => true)); |
|
193 | +$returnObj_sig = $wrapper->wrapPhpFunction(array($c, 'returnObject'), '', array('encode_php_objs' => true)); |
|
194 | 194 | |
195 | 195 | // used to test signatures with NULL params |
196 | 196 | $findstate12_sig = array( |
@@ -216,7 +216,7 @@ discard block |
||
216 | 216 | $s = $req->getParam(0); |
217 | 217 | $t = $req->getParam(1); |
218 | 218 | |
219 | - return new PhpXmlRpc\Response(new Value($s->scalarval() + $t->scalarval(), Value::$xmlrpcInt)); |
|
219 | + return new PhpXmlRpc\Response(new Value($s->scalarval()+$t->scalarval(), Value::$xmlrpcInt)); |
|
220 | 220 | } |
221 | 221 | |
222 | 222 | $addtwodouble_sig = array(array(Value::$xmlrpcDouble, Value::$xmlrpcDouble, Value::$xmlrpcDouble)); |
@@ -226,7 +226,7 @@ discard block |
||
226 | 226 | $s = $req->getParam(0); |
227 | 227 | $t = $req->getParam(1); |
228 | 228 | |
229 | - return new PhpXmlRpc\Response(new Value($s->scalarval() + $t->scalarval(), Value::$xmlrpcDouble)); |
|
229 | + return new PhpXmlRpc\Response(new Value($s->scalarval()+$t->scalarval(), Value::$xmlrpcDouble)); |
|
230 | 230 | } |
231 | 231 | |
232 | 232 | $stringecho_sig = array(array(Value::$xmlrpcString, Value::$xmlrpcString)); |
@@ -242,7 +242,7 @@ discard block |
||
242 | 242 | function echoBack($req) |
243 | 243 | { |
244 | 244 | // just sends back a string with what i got sent to me, just escaped, that's all |
245 | - $s = "I got the following message:\n" . $req->serialize(); |
|
245 | + $s = "I got the following message:\n".$req->serialize(); |
|
246 | 246 | |
247 | 247 | return new PhpXmlRpc\Response(new Value($s)); |
248 | 248 | } |
@@ -299,7 +299,7 @@ discard block |
||
299 | 299 | return 0; |
300 | 300 | } |
301 | 301 | |
302 | - return ($agesorter_arr[$a] > $agesorter_arr[$b]) ? -1 : 1; |
|
302 | + return ($agesorter_arr[$a]>$agesorter_arr[$b]) ? -1 : 1; |
|
303 | 303 | } |
304 | 304 | |
305 | 305 | $agesorter_sig = array(array(Value::$xmlrpcArray, Value::$xmlrpcArray)); |
@@ -345,7 +345,7 @@ discard block |
||
345 | 345 | // hack, must make global as uksort() won't |
346 | 346 | // allow us to pass any other auxiliary information |
347 | 347 | uksort($agesorter_arr, 'agesorter_compare'); |
348 | - foreach($agesorter_arr as $key => $val) { |
|
348 | + foreach ($agesorter_arr as $key => $val) { |
|
349 | 349 | // recreate each struct element |
350 | 350 | $v[] = new Value( |
351 | 351 | array( |
@@ -400,17 +400,17 @@ discard block |
||
400 | 400 | $err = "Error, no 'From' field specified"; |
401 | 401 | } |
402 | 402 | |
403 | - $msgHdr = "From: " . $mFrom->scalarval() . "\n"; |
|
404 | - $msgHdr .= "To: " . $mTo->scalarval() . "\n"; |
|
403 | + $msgHdr = "From: ".$mFrom->scalarval()."\n"; |
|
404 | + $msgHdr .= "To: ".$mTo->scalarval()."\n"; |
|
405 | 405 | |
406 | 406 | if ($mCc->scalarval() != "") { |
407 | - $msgHdr .= "Cc: " . $mCc->scalarval() . "\n"; |
|
407 | + $msgHdr .= "Cc: ".$mCc->scalarval()."\n"; |
|
408 | 408 | } |
409 | 409 | if ($mBcc->scalarval() != "") { |
410 | - $msgHdr .= "Bcc: " . $mBcc->scalarval() . "\n"; |
|
410 | + $msgHdr .= "Bcc: ".$mBcc->scalarval()."\n"; |
|
411 | 411 | } |
412 | 412 | if ($mMime->scalarval() != "") { |
413 | - $msgHdr .= "Content-type: " . $mMime->scalarval() . "\n"; |
|
413 | + $msgHdr .= "Content-type: ".$mMime->scalarval()."\n"; |
|
414 | 414 | } |
415 | 415 | $msgHdr .= "X-Mailer: XML-RPC for PHP mailer 1.0"; |
416 | 416 | |
@@ -500,7 +500,7 @@ discard block |
||
500 | 500 | $moe = $sno["moe"]; |
501 | 501 | $larry = $sno["larry"]; |
502 | 502 | $curly = $sno["curly"]; |
503 | - $num = $moe->scalarval() + $larry->scalarval() + $curly->scalarval(); |
|
503 | + $num = $moe->scalarval()+$larry->scalarval()+$curly->scalarval(); |
|
504 | 504 | |
505 | 505 | return new PhpXmlRpc\Response(new Value($num, Value::$xmlrpcInt)); |
506 | 506 | } |
@@ -542,9 +542,9 @@ discard block |
||
542 | 542 | $ar = $req->getParam(0); |
543 | 543 | $sz = $ar->count(); |
544 | 544 | $first = $ar[0]; |
545 | - $last = $ar[$sz - 1]; |
|
545 | + $last = $ar[$sz-1]; |
|
546 | 546 | |
547 | - return new PhpXmlRpc\Response(new Value($first->scalarval() . |
|
547 | + return new PhpXmlRpc\Response(new Value($first->scalarval(). |
|
548 | 548 | $last->scalarval(), Value::$xmlrpcString)); |
549 | 549 | } |
550 | 550 | |
@@ -578,7 +578,7 @@ discard block |
||
578 | 578 | $larry = $fools["larry"]; |
579 | 579 | $moe = $fools["moe"]; |
580 | 580 | |
581 | - return new PhpXmlRpc\Response(new Value($curly->scalarval() + $larry->scalarval() + $moe->scalarval(), Value::$xmlrpcInt)); |
|
581 | + return new PhpXmlRpc\Response(new Value($curly->scalarval()+$larry->scalarval()+$moe->scalarval(), Value::$xmlrpcInt)); |
|
582 | 582 | } |
583 | 583 | |
584 | 584 | $v1_countTheEntities_sig = array(array(Value::$xmlrpcStruct, Value::$xmlrpcString)); |
@@ -592,7 +592,7 @@ discard block |
||
592 | 592 | $ap = 0; |
593 | 593 | $qu = 0; |
594 | 594 | $amp = 0; |
595 | - for ($i = 0; $i < strlen($str); $i++) { |
|
595 | + for ($i = 0; $i<strlen($str); $i++) { |
|
596 | 596 | $c = substr($str, $i, 1); |
597 | 597 | switch ($c) { |
598 | 598 | case ">": |
@@ -794,7 +794,7 @@ discard block |
||
794 | 794 | ), |
795 | 795 | // Greek word 'kosme'. NB: NOT a valid ISO8859 string! |
796 | 796 | // NB: we can only register this when setting internal encoding to UTF-8, or it will break system.listMethods |
797 | - "tests.utf8methodname." . 'κόσμε' => array( |
|
797 | + "tests.utf8methodname.".'κόσμε' => array( |
|
798 | 798 | "function" => "stringEcho", |
799 | 799 | "signature" => $stringecho_sig, |
800 | 800 | "docstring" => $stringecho_doc, |
@@ -990,5 +990,5 @@ discard block |
||
990 | 990 | // Out-of-band information: let the client manipulate the server operations. |
991 | 991 | // We do this to help the testsuite script: do not reproduce in production! |
992 | 992 | if (isset($_COOKIE['PHPUNIT_SELENIUM_TEST_ID']) && extension_loaded('xdebug')) { |
993 | - include_once __DIR__ . "/../../vendor/phpunit/phpunit-selenium/PHPUnit/Extensions/SeleniumCommon/append.php"; |
|
993 | + include_once __DIR__."/../../vendor/phpunit/phpunit-selenium/PHPUnit/Extensions/SeleniumCommon/append.php"; |
|
994 | 994 | } |
@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -require_once __DIR__ . "/_bootstrap.php"; |
|
3 | +require_once __DIR__."/_bootstrap.php"; |
|
4 | 4 | |
5 | 5 | use PhpXmlRpc\Value; |
6 | 6 | |
@@ -31,8 +31,8 @@ discard block |
||
31 | 31 | $count = 0; |
32 | 32 | } |
33 | 33 | // add the new comment in |
34 | - dba_insert($msgID . "_comment_${count}", $comment, $dbh); |
|
35 | - dba_insert($msgID . "_name_${count}", $name, $dbh); |
|
34 | + dba_insert($msgID."_comment_${count}", $comment, $dbh); |
|
35 | + dba_insert($msgID."_name_${count}", $name, $dbh); |
|
36 | 36 | $count++; |
37 | 37 | dba_replace($countID, $count, $dbh); |
38 | 38 | dba_close($dbh); |
@@ -65,7 +65,7 @@ discard block |
||
65 | 65 | $countID = "${msgID}_count"; |
66 | 66 | if (dba_exists($countID, $dbh)) { |
67 | 67 | $count = dba_fetch($countID, $dbh); |
68 | - for ($i = 0; $i < $count; $i++) { |
|
68 | + for ($i = 0; $i<$count; $i++) { |
|
69 | 69 | $name = dba_fetch("${msgID}_name_${i}", $dbh); |
70 | 70 | $comment = dba_fetch("${msgID}_comment_${i}", $dbh); |
71 | 71 | // push a new struct onto the return array |
@@ -14,5 +14,5 @@ |
||
14 | 14 | } |
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(); |
@@ -9,7 +9,7 @@ discard block |
||
9 | 9 | * @license code licensed under the BSD License: see file license.txt |
10 | 10 | */ |
11 | 11 | |
12 | -require_once __DIR__ . "/_bootstrap.php"; |
|
12 | +require_once __DIR__."/_bootstrap.php"; |
|
13 | 13 | |
14 | 14 | /** |
15 | 15 | * Forward an xmlrpc request to another server, and return to client the response received. |
@@ -29,7 +29,7 @@ discard block |
||
29 | 29 | $url = $encoder->decode($req->getParam(0)); |
30 | 30 | $client = new PhpXmlRpc\Client($url); |
31 | 31 | |
32 | - if ($req->getNumParams() > 3) { |
|
32 | + if ($req->getNumParams()>3) { |
|
33 | 33 | // we have to set some options onto the client. |
34 | 34 | // Note that if we do not untaint the received values, warnings might be generated... |
35 | 35 | $options = $encoder->decode($req->getParam(3)); |
@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | $client->setSSLVerifyPeer($val); |
50 | 50 | break; |
51 | 51 | case 'Timeout': |
52 | - $timeout = (integer)$val; |
|
52 | + $timeout = (integer) $val; |
|
53 | 53 | break; |
54 | 54 | } // switch |
55 | 55 | } |
@@ -67,7 +67,7 @@ discard block |
||
67 | 67 | } |
68 | 68 | |
69 | 69 | // add debug info into response we give back to caller |
70 | - PhpXmlRpc\Server::xmlrpc_debugmsg("Sending to server $url the payload: " . $req->serialize()); |
|
70 | + PhpXmlRpc\Server::xmlrpc_debugmsg("Sending to server $url the payload: ".$req->serialize()); |
|
71 | 71 | |
72 | 72 | return $client->send($req, $timeout); |
73 | 73 | } |
@@ -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 - Mail demo</title></head> |
3 | 3 | <body> |
4 | 4 | <h1>Mail demo</h1> |
@@ -14,7 +14,7 @@ discard block |
||
14 | 14 | <?php |
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 | if (isset($_POST["mailto"]) && $_POST["mailto"]) { |
@@ -38,8 +38,8 @@ discard block |
||
38 | 38 | print "<font color=\"red\">"; |
39 | 39 | print "Mail send failed<br/>\n"; |
40 | 40 | print "Fault: "; |
41 | - print "Code: " . htmlspecialchars($resp->faultCode()) . |
|
42 | - " Reason: '" . htmlspecialchars($resp->faultString()) . "'<br/>"; |
|
41 | + print "Code: ".htmlspecialchars($resp->faultCode()). |
|
42 | + " Reason: '".htmlspecialchars($resp->faultString())."'<br/>"; |
|
43 | 43 | print "</font><br/>"; |
44 | 44 | } |
45 | 45 | } |
@@ -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 - Introspect demo</title></head> |
3 | 3 | <body> |
4 | 4 | <h1>Introspect demo</h1> |
@@ -10,14 +10,14 @@ discard block |
||
10 | 10 | function display_error($r) |
11 | 11 | { |
12 | 12 | print "An error occurred: "; |
13 | - print "Code: " . $r->faultCode() |
|
14 | - . " Reason: '" . $r->faultString() . "'<br/>"; |
|
13 | + print "Code: ".$r->faultCode() |
|
14 | + . " Reason: '".$r->faultString()."'<br/>"; |
|
15 | 15 | } |
16 | 16 | |
17 | 17 | $client = new PhpXmlRpc\Client(XMLRPCSERVER); |
18 | 18 | |
19 | 19 | // First off, let's retrieve the list of methods available on the remote server |
20 | -print "<h3>methods available at http://" . $client->server . $client->path . "</h3>\n"; |
|
20 | +print "<h3>methods available at http://".$client->server.$client->path."</h3>\n"; |
|
21 | 21 | $req = new PhpXmlRpc\Request('system.listMethods'); |
22 | 22 | $resp = $client->send($req); |
23 | 23 | |
@@ -28,7 +28,7 @@ discard block |
||
28 | 28 | |
29 | 29 | // Then, retrieve the signature and help text of each available method |
30 | 30 | foreach ($v as $methodName) { |
31 | - print "<h4>" . $methodName->scalarval() . "</h4>\n"; |
|
31 | + print "<h4>".$methodName->scalarval()."</h4>\n"; |
|
32 | 32 | // build messages first, add params later |
33 | 33 | $m1 = new PhpXmlRpc\Request('system.methodHelp'); |
34 | 34 | $m2 = new PhpXmlRpc\Request('system.methodSignature'); |
@@ -59,13 +59,13 @@ discard block |
||
59 | 59 | if ($val->kindOf() == "array") { |
60 | 60 | foreach ($val as $x) { |
61 | 61 | $ret = $x[0]; |
62 | - print "<code>" . htmlspecialchars($ret->scalarval()) . " " |
|
63 | - . htmlspecialchars($methodName->scalarval()) . "("; |
|
64 | - if ($x->count() > 1) { |
|
65 | - for ($k = 1; $k < $x->count(); $k++) { |
|
62 | + print "<code>".htmlspecialchars($ret->scalarval())." " |
|
63 | + . htmlspecialchars($methodName->scalarval())."("; |
|
64 | + if ($x->count()>1) { |
|
65 | + for ($k = 1; $k<$x->count(); $k++) { |
|
66 | 66 | $y = $x[$k]; |
67 | 67 | print htmlspecialchars($y->scalarval()); |
68 | - if ($k < $x->count() - 1) { |
|
68 | + if ($k<$x->count()-1) { |
|
69 | 69 | print ", "; |
70 | 70 | } |
71 | 71 | } |
@@ -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 - Webservice wrappper demo</title></head> |
3 | 3 | <body> |
4 | 4 | <h1>Webservice wrappper demo</h1> |
@@ -17,7 +17,7 @@ discard block |
||
17 | 17 | $client->return_type = 'phpvals'; // let client give us back php values instead of xmlrpcvals |
18 | 18 | $resp = $client->send(new PhpXmlRpc\Request('system.listMethods')); |
19 | 19 | if ($resp->faultCode()) { |
20 | - echo "<p>Server methods list could not be retrieved: error {$resp->faultCode()} '" . htmlspecialchars($resp->faultString()) . "'</p>\n"; |
|
20 | + echo "<p>Server methods list could not be retrieved: error {$resp->faultCode()} '".htmlspecialchars($resp->faultString())."'</p>\n"; |
|
21 | 21 | } else { |
22 | 22 | echo "<p>Server methods list retrieved, now wrapping it up...</p>\n<ul>\n"; |
23 | 23 | flush(); |
@@ -29,9 +29,9 @@ discard block |
||
29 | 29 | if ($methodName == 'examples.getStateName') { |
30 | 30 | $callable = $wrapper->wrapXmlrpcMethod($client, $methodName); |
31 | 31 | if ($callable) { |
32 | - echo "<li>Remote server method " . htmlspecialchars($methodName) . " wrapped into php function</li>\n"; |
|
32 | + echo "<li>Remote server method ".htmlspecialchars($methodName)." wrapped into php function</li>\n"; |
|
33 | 33 | } else { |
34 | - echo "<li>Remote server method " . htmlspecialchars($methodName) . " could not be wrapped!</li>\n"; |
|
34 | + echo "<li>Remote server method ".htmlspecialchars($methodName)." could not be wrapped!</li>\n"; |
|
35 | 35 | } |
36 | 36 | break; |
37 | 37 | } |
@@ -14,7 +14,7 @@ |
||
14 | 14 | } |
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 |
@@ -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 - Agesort demo</title></head> |
3 | 3 | <body> |
4 | 4 | <h1>Agesort demo</h1> |
@@ -13,7 +13,7 @@ discard block |
||
13 | 13 | $inAr = array("Dave" => 24, "Edd" => 45, "Joe" => 37, "Fred" => 27); |
14 | 14 | print "This is the input data:<br/><pre>"; |
15 | 15 | foreach ($inAr as $key => $val) { |
16 | - print $key . ", " . $val . "\n"; |
|
16 | + print $key.", ".$val."\n"; |
|
17 | 17 | } |
18 | 18 | print "</pre>"; |
19 | 19 | |
@@ -29,7 +29,7 @@ discard block |
||
29 | 29 | ); |
30 | 30 | } |
31 | 31 | $v = new PhpXmlRpc\Value($p, "array"); |
32 | -print "Encoded into xmlrpc format it looks like this: <pre>\n" . htmlentities($v->serialize()) . "</pre>\n"; |
|
32 | +print "Encoded into xmlrpc format it looks like this: <pre>\n".htmlentities($v->serialize())."</pre>\n"; |
|
33 | 33 | |
34 | 34 | // create client and message objects |
35 | 35 | $req = new PhpXmlRpc\Request('examples.sortByAge', array($v)); |
@@ -49,15 +49,15 @@ discard block |
||
49 | 49 | foreach ($value as $struct) { |
50 | 50 | $name = $struct["name"]; |
51 | 51 | $age = $struct["age"]; |
52 | - print htmlspecialchars($name->scalarval()) . ", " . htmlspecialchars($age->scalarval()) . "\n"; |
|
52 | + print htmlspecialchars($name->scalarval()).", ".htmlspecialchars($age->scalarval())."\n"; |
|
53 | 53 | } |
54 | 54 | |
55 | - print "<hr/>For nerds: I got this value back<br/><pre>" . |
|
56 | - htmlentities($resp->serialize()) . "</pre><hr/>\n"; |
|
55 | + print "<hr/>For nerds: I got this value back<br/><pre>". |
|
56 | + htmlentities($resp->serialize())."</pre><hr/>\n"; |
|
57 | 57 | } else { |
58 | 58 | print "An error occurred:<pre>"; |
59 | - print "Code: " . htmlspecialchars($resp->faultCode()) . |
|
60 | - "\nReason: '" . htmlspecialchars($resp->faultString()) . '\'</pre><hr/>'; |
|
59 | + print "Code: ".htmlspecialchars($resp->faultCode()). |
|
60 | + "\nReason: '".htmlspecialchars($resp->faultString()).'\'</pre><hr/>'; |
|
61 | 61 | } |
62 | 62 | |
63 | 63 | ?> |