Code Duplication    Length = 6-8 lines in 2 locations

src/Server.php 2 locations

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