Code Duplication    Length = 8-8 lines in 2 locations

core/ControllerDispatcher/RouterMapBuilder.php 2 locations

@@ 58-65 (lines=8) @@
55
        }
56
    }
57
58
    private function resolveHttpGetHandler($handlers)
59
    {
60
        if (gettype($handlers) === 'string' || is_callable($handlers)) {
61
            return $handlers;
62
        }
63
64
        return isset($handlers['GET']) ? $handlers['GET'] : null;
65
    }
66
67
    private function resolveHttpPostHandler($handlers)
68
    {
@@ 67-74 (lines=8) @@
64
        return isset($handlers['GET']) ? $handlers['GET'] : null;
65
    }
66
67
    private function resolveHttpPostHandler($handlers)
68
    {
69
        if (gettype($handlers) === 'string' || is_callable($handlers)) {
70
            return;
71
        }
72
73
        return isset($handlers['POST']) ? $handlers['POST'] : null;
74
    }
75
}
76