Code Duplication    Length = 9-12 lines in 2 locations

src/Router/RoutingTable.php 2 locations

@@ 63-74 (lines=12) @@
60
61
    }
62
63
    public function get($route) {
64
65
        $folders = explode("/", $route);
66
67
        $regex = $this->readpath($folders);
68
69
        if (isset($this->routes[$regex]))
70
            return $this->routes[$regex];
71
        else
72
            return null;
73
74
    }
75
76
    public function remove($route) {
77
@@ 76-84 (lines=9) @@
73
74
    }
75
76
    public function remove($route) {
77
78
        $folders = explode("/", $route);
79
80
        $regex = $this->readpath($folders);
81
82
        if (isset($this->routes[$regex])) unset($this->routes[$regex]);
83
84
    }
85
86
    public function routes() {
87