Code Duplication    Length = 2-4 lines in 2 locations

src/Routing/Match/RoutesMatch.php 2 locations

@@ 110-111 (lines=2) @@
107
    {
108
        if (substr($this->request['route'], -1) == '*') {
109
            $pos = strpos($this->request['route'], '*');
110
            if (substr($this->router->route->getUrl(), 0, $pos) == substr($this->request['route'], 0, $pos))
111
                if (isset($this->request)) return true;
112
        }
113
        if (preg_match($regex, $this->router->route->getUrl(), $this->request['parameters'])) {
114
            array_shift($this->request['parameters']);
@@ 113-116 (lines=4) @@
110
            if (substr($this->router->route->getUrl(), 0, $pos) == substr($this->request['route'], 0, $pos))
111
                if (isset($this->request)) return true;
112
        }
113
        if (preg_match($regex, $this->router->route->getUrl(), $this->request['parameters'])) {
114
            array_shift($this->request['parameters']);
115
            return true;
116
        }
117
        return false;
118
    }
119