Code Duplication    Length = 2-4 lines in 2 locations

src/Routing/Matcher/ArrayMatcher.php 2 locations

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