Code Duplication    Length = 7-7 lines in 2 locations

demo/server/server.php 2 locations

@@ 220-226 (lines=7) @@
217
218
$addtwo_sig = array(array(Value::$xmlrpcInt, Value::$xmlrpcInt, Value::$xmlrpcInt));
219
$addtwo_doc = 'Add two integers together and return the result';
220
function addTwo($req)
221
{
222
    $s = $req->getParam(0);
223
    $t = $req->getParam(1);
224
225
    return new PhpXmlRpc\Response(new Value($s->scalarval() + $t->scalarval(), Value::$xmlrpcInt));
226
}
227
228
$addtwodouble_sig = array(array(Value::$xmlrpcDouble, Value::$xmlrpcDouble, Value::$xmlrpcDouble));
229
$addtwodouble_doc = 'Add two doubles together and return the result';
@@ 230-236 (lines=7) @@
227
228
$addtwodouble_sig = array(array(Value::$xmlrpcDouble, Value::$xmlrpcDouble, Value::$xmlrpcDouble));
229
$addtwodouble_doc = 'Add two doubles together and return the result';
230
function addTwoDouble($req)
231
{
232
    $s = $req->getParam(0);
233
    $t = $req->getParam(1);
234
235
    return new PhpXmlRpc\Response(new Value($s->scalarval() + $t->scalarval(), Value::$xmlrpcDouble));
236
}
237
238
$stringecho_sig = array(array(Value::$xmlrpcString, Value::$xmlrpcString));
239
$stringecho_doc = 'Accepts a string parameter, returns the string.';