Code Duplication    Length = 6-6 lines in 2 locations

src/Server.php 2 locations

@@ 850-855 (lines=6) @@
847
    public static function _xmlrpcs_methodSignature($server, $req)
848
    {
849
        // let accept as parameter both an xmlrpc value or string
850
        if (is_object($req)) {
851
            $methName = $req->getParam(0);
852
            $methName = $methName->scalarval();
853
        } else {
854
            $methName = $req;
855
        }
856
        if (strpos($methName, "system.") === 0) {
857
            $dmap = $server->getSystemDispatchMap();
858
        } else {
@@ 887-892 (lines=6) @@
884
    public static function _xmlrpcs_methodHelp($server, $req)
885
    {
886
        // let accept as parameter both an xmlrpc value or string
887
        if (is_object($req)) {
888
            $methName = $req->getParam(0);
889
            $methName = $methName->scalarval();
890
        } else {
891
            $methName = $req;
892
        }
893
        if (strpos($methName, "system.") === 0) {
894
            $dmap = $server->getSystemDispatchMap();
895
        } else {