Code Duplication    Length = 10-15 lines in 2 locations

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

@@ 84-93 (lines=10) @@
81
82
    }
83
84
    public function get($route) {
85
86
        $regex = $this->regex($route);
87
88
        if (isset($this->routes[$regex]))
89
            return $this->routes[$regex];
90
        else
91
            return null;
92
93
    }
94
95
    public function regex($route) {
96
@@ 103-117 (lines=15) @@
100
101
    }
102
103
    public function remove($route) {
104
105
        $regex = $this->regex($route);
106
107
        if (isset($this->routes[$regex])) {
108
            
109
            unset($this->routes[$regex]);
110
            
111
            return true;
112
            
113
        }
114
        
115
        return false;
116
117
    }
118
119
    public function routes($routes = null) {
120