Code Duplication    Length = 5-5 lines in 2 locations

src/Server.php 2 locations

@@ 856-860 (lines=5) @@
853
        } else {
854
            $methName = $req;
855
        }
856
        if (strpos($methName, "system.") === 0) {
857
            $dmap = $server->getSystemDispatchMap();
858
        } else {
859
            $dmap = $server->dmap;
860
        }
861
        if (isset($dmap[$methName])) {
862
            if (isset($dmap[$methName]['signature'])) {
863
                $sigs = array();
@@ 893-897 (lines=5) @@
890
        } else {
891
            $methName = $req;
892
        }
893
        if (strpos($methName, "system.") === 0) {
894
            $dmap = $server->getSystemDispatchMap();
895
        } else {
896
            $dmap = $server->dmap;
897
        }
898
        if (isset($dmap[$methName])) {
899
            if (isset($dmap[$methName]['docstring'])) {
900
                $r = new Response(new Value($dmap[$methName]['docstring']), 'string');