Code Duplication    Length = 10-15 lines in 2 locations

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

@@ 77-86 (lines=10) @@
74
75
    }
76
77
    public function get($route) {
78
79
        $regex = $this->regex($route);
80
81
        if (isset($this->routes[$regex]))
82
            return $this->routes[$regex];
83
        else
84
            return null;
85
86
    }
87
88
    public function regex($route) {
89
@@ 96-110 (lines=15) @@
93
94
    }
95
96
    public function remove($route) {
97
98
        $regex = $this->regex($route);
99
100
        if (isset($this->routes[$regex])) {
101
102
            unset($this->routes[$regex]);
103
104
            return true;
105
106
        }
107
108
        return false;
109
110
    }
111
112
    public function defaultRoute() {
113