Code Duplication    Length = 13-13 lines in 2 locations

src/Router/RoutingTable.php 2 locations

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