Code Duplication    Length = 3-3 lines in 2 locations

src/Server.php 1 location

@@ 545-547 (lines=3) @@
542
                // build a Request object with data parsed from xml
543
                $req = new Request($xmlRpcParser->_xh['method']);
544
                // now add parameters in
545
                for ($i = 0; $i < count($xmlRpcParser->_xh['params']); $i++) {
546
                    $req->addParam($xmlRpcParser->_xh['params'][$i]);
547
                }
548
549
                if ($this->debug > 1) {
550
                    $this->debugmsg("\n+++PARSED+++\n" . var_export($req, true) . "\n+++END+++");

src/Encoder.php 1 location

@@ 308-310 (lines=3) @@
305
                return $r;
306
            case 'methodcall':
307
                $req = new Request($xmlRpcParser->_xh['method']);
308
                for ($i = 0; $i < count($xmlRpcParser->_xh['params']); $i++) {
309
                    $req->addParam($xmlRpcParser->_xh['params'][$i]);
310
                }
311
312
                return $req;
313
            case 'value':