Code Duplication    Length = 6-6 lines in 2 locations

src/Server.php 2 locations

@@ 856-861 (lines=6) @@
853
    public static function _xmlrpcs_methodSignature($server, $req)
854
    {
855
        // let accept as parameter both an xmlrpc value or string
856
        if (is_object($req)) {
857
            $methName = $req->getParam(0);
858
            $methName = $methName->scalarval();
859
        } else {
860
            $methName = $req;
861
        }
862
        if (strpos($methName, "system.") === 0) {
863
            $dmap = $server->getSystemDispatchMap();
864
        } else {
@@ 898-903 (lines=6) @@
895
    public static function _xmlrpcs_methodHelp($server, $req)
896
    {
897
        // let accept as parameter both an xmlrpc value or string
898
        if (is_object($req)) {
899
            $methName = $req->getParam(0);
900
            $methName = $methName->scalarval();
901
        } else {
902
            $methName = $req;
903
        }
904
        if (strpos($methName, "system.") === 0) {
905
            $dmap = $server->getSystemDispatchMap();
906
        } else {