Code Duplication    Length = 2-4 lines in 2 locations

src/Routing/Match/RoutesMatch.php 2 locations

@@ 74-75 (lines=2) @@
71
    {
72
        if (substr($this->request['route'], -1) == '*') {
73
            $pos = strpos($this->request['route'], '*');
74
            if (substr($this->router->route->getUrl(), 0, $pos) == substr($this->request['route'], 0, $pos))
75
                if (isset($this->request)) return true;
76
        }
77
        if (preg_match($regex, $this->router->route->getUrl(), $this->request['parameters'])) {
78
            array_shift($this->request['parameters']);
@@ 77-80 (lines=4) @@
74
            if (substr($this->router->route->getUrl(), 0, $pos) == substr($this->request['route'], 0, $pos))
75
                if (isset($this->request)) return true;
76
        }
77
        if (preg_match($regex, $this->router->route->getUrl(), $this->request['parameters'])) {
78
            array_shift($this->request['parameters']);
79
            return true;
80
        }
81
        return false;
82
    }
83