Code Duplication    Length = 3-3 lines in 2 locations

src/Server.php 1 location

@@ 535-537 (lines=3) @@
532
                // build a Request object with data parsed from xml
533
                $req = new Request($xmlRpcParser->_xh['method']);
534
                // now add parameters in
535
                for ($i = 0; $i < count($xmlRpcParser->_xh['params']); $i++) {
536
                    $req->addParam($xmlRpcParser->_xh['params'][$i]);
537
                }
538
539
                if ($this->debug > 1) {
540
                    $this->debugmsg("\n+++PARSED+++\n" . var_export($req, true) . "\n+++END+++");

src/Encoder.php 1 location

@@ 290-292 (lines=3) @@
287
                return $r;
288
            case 'methodcall':
289
                $req = new Request($xmlRpcParser->_xh['method']);
290
                for ($i = 0; $i < count($xmlRpcParser->_xh['params']); $i++) {
291
                    $req->addParam($xmlRpcParser->_xh['params'][$i]);
292
                }
293
294
                return $req;
295
            case 'value':