Code Duplication    Length = 2-4 lines in 2 locations

src/Routing/Matcher/ArrayMatcher.php 2 locations

@@ 173-174 (lines=2) @@
170
    {
171
        if (substr($this->request['route'], -1) == '*') {
172
            $pos = strpos($this->request['route'], '*');
173
            if (substr($this->router->route->getUrl(), 0, $pos) == substr($this->request['route'], 0, $pos) && isset($this->request['params']))
174
                return true;
175
        }
176
        if (preg_match($regex, $this->router->route->getUrl(), $this->request['parameters'])) {
177
            array_shift($this->request['parameters']);
@@ 176-179 (lines=4) @@
173
            if (substr($this->router->route->getUrl(), 0, $pos) == substr($this->request['route'], 0, $pos) && isset($this->request['params']))
174
                return true;
175
        }
176
        if (preg_match($regex, $this->router->route->getUrl(), $this->request['parameters'])) {
177
            array_shift($this->request['parameters']);
178
            return true;
179
        }
180
        return false;
181
    }
182