@@ -91,7 +91,7 @@ |
||
91 | 91 | |
92 | 92 | // Greek word 'kosme'. NB: NOT a valid ISO8859 string! |
93 | 93 | // NB: we can only register this when setting internal encoding to UTF-8, or it will break system.listMethods |
94 | - "tests.utf8methodname." . 'κόσμε' => array( |
|
94 | + "tests.utf8methodname.".'κόσμε' => array( |
|
95 | 95 | "function" => "exampleMethods::stringEcho", |
96 | 96 | "signature" => exampleMethods::$stringecho_sig, |
97 | 97 | "docstring" => exampleMethods::$stringecho_doc, |
@@ -53,11 +53,11 @@ discard block |
||
53 | 53 | $snv = $sno->scalarval(); |
54 | 54 | |
55 | 55 | // look it up in our array (zero-based) |
56 | - if (isset(self::$stateNames[$snv - 1])) { |
|
57 | - $stateName = self::$stateNames[$snv - 1]; |
|
56 | + if (isset(self::$stateNames[$snv-1])) { |
|
57 | + $stateName = self::$stateNames[$snv-1]; |
|
58 | 58 | } else { |
59 | 59 | // not there, so complain |
60 | - $err = "I don't have a state for the index '" . $snv . "'"; |
|
60 | + $err = "I don't have a state for the index '".$snv."'"; |
|
61 | 61 | } |
62 | 62 | |
63 | 63 | if ($err != '') { |
@@ -131,7 +131,7 @@ discard block |
||
131 | 131 | $s = $req->getParam(0); |
132 | 132 | $t = $req->getParam(1); |
133 | 133 | |
134 | - return new Response(new Value($s->scalarval() + $t->scalarval(), Value::$xmlrpcInt)); |
|
134 | + return new Response(new Value($s->scalarval()+$t->scalarval(), Value::$xmlrpcInt)); |
|
135 | 135 | } |
136 | 136 | |
137 | 137 | public static $addtwodouble_sig = array(array('double', 'double', 'double')); |
@@ -141,7 +141,7 @@ discard block |
||
141 | 141 | $s = $req->getParam(0); |
142 | 142 | $t = $req->getParam(1); |
143 | 143 | |
144 | - return new Response(new Value($s->scalarval() + $t->scalarval(), Value::$xmlrpcDouble)); |
|
144 | + return new Response(new Value($s->scalarval()+$t->scalarval(), Value::$xmlrpcDouble)); |
|
145 | 145 | } |
146 | 146 | |
147 | 147 | public static $stringecho_sig = array(array('string', 'string')); |
@@ -157,7 +157,7 @@ discard block |
||
157 | 157 | public static function echoBack($req) |
158 | 158 | { |
159 | 159 | // just sends back a string with what I got sent to me, that's all (escaping for xml is automatic) |
160 | - $s = "I got the following message:\n" . $req->serialize(); |
|
160 | + $s = "I got the following message:\n".$req->serialize(); |
|
161 | 161 | |
162 | 162 | return new Response(new Value($s)); |
163 | 163 | } |
@@ -230,17 +230,17 @@ discard block |
||
230 | 230 | |
231 | 231 | /// @todo in real life, we should check for presence of return characters to avoid header injection! |
232 | 232 | |
233 | - $msgHdr = "From: " . $mFrom->scalarval() . "\n"; |
|
234 | - $msgHdr .= "To: " . $mTo->scalarval() . "\n"; |
|
233 | + $msgHdr = "From: ".$mFrom->scalarval()."\n"; |
|
234 | + $msgHdr .= "To: ".$mTo->scalarval()."\n"; |
|
235 | 235 | |
236 | 236 | if ($mCc->scalarval() != "") { |
237 | - $msgHdr .= "Cc: " . $mCc->scalarval() . "\n"; |
|
237 | + $msgHdr .= "Cc: ".$mCc->scalarval()."\n"; |
|
238 | 238 | } |
239 | 239 | if ($mBcc->scalarval() != "") { |
240 | - $msgHdr .= "Bcc: " . $mBcc->scalarval() . "\n"; |
|
240 | + $msgHdr .= "Bcc: ".$mBcc->scalarval()."\n"; |
|
241 | 241 | } |
242 | 242 | if ($mMime->scalarval() != "") { |
243 | - $msgHdr .= "Content-type: " . $mMime->scalarval() . "\n"; |
|
243 | + $msgHdr .= "Content-type: ".$mMime->scalarval()."\n"; |
|
244 | 244 | } |
245 | 245 | $msgHdr .= "X-Mailer: XML-RPC for PHP mailer 1.0"; |
246 | 246 |