Code Duplication    Length = 6-8 lines in 2 locations

src/Server.php 2 locations

@@ 572-577 (lines=6) @@
569
        $sysCall = $this->allow_system_funcs && (strpos($methName, "system.") === 0);
570
        $dmap = $sysCall ? $this->getSystemDispatchMap() : $this->dmap;
571
572
        if (!isset($dmap[$methName]['function'])) {
573
            // No such method
574
            return new Response(0,
575
                PhpXmlRpc::$xmlrpcerr['unknown_method'],
576
                PhpXmlRpc::$xmlrpcstr['unknown_method']);
577
        }
578
579
        // Check signature
580
        if (isset($dmap[$methName]['signature'])) {
@@ 587-594 (lines=8) @@
584
            } else {
585
                list($ok, $errStr) = $this->verifySignature($paramTypes, $sig);
586
            }
587
            if (!$ok) {
588
                // Didn't match.
589
                return new Response(
590
                    0,
591
                    PhpXmlRpc::$xmlrpcerr['incorrect_params'],
592
                    PhpXmlRpc::$xmlrpcstr['incorrect_params'] . ": ${errStr}"
593
                );
594
            }
595
        }
596
597
        $func = $dmap[$methName]['function'];