Code Duplication    Length = 13-13 lines in 2 locations

src/Comodojo/Dispatcher/Router/RoutingTable.php 2 locations

@@ 39-51 (lines=13) @@
36
37
    }
38
39
    public function put($route, $type, $class, $parameters = array()) {
40
41
        $folders = explode("/", $route);
42
43
        $regex = $this->readpath($folders);
44
45
        if (!isset($this->routes[$regex])) {
46
47
            $this->add($folders, $type, $class, $parameters);
48
49
        }
50
51
    }
52
53
    public function set($route, $type, $class, $parameters = array()) {
54
@@ 53-65 (lines=13) @@
50
51
    }
52
53
    public function set($route, $type, $class, $parameters = array()) {
54
55
        $folders = explode("/", $route);
56
57
        $regex = $this->readpath($folders);
58
59
        if (isset($this->routes[$regex])) {
60
61
            $this->add($folders, $type, $class, $parameters);
62
63
        }
64
65
    }
66
67
    public function get($route) {
68