Code Duplication    Length = 13-13 lines in 2 locations

src/Router/RoutingTable.php 2 locations

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