Code Duplication    Length = 2-4 lines in 2 locations

src/Routing/Matcher/ArrayMatcher.php 2 locations

@@ 124-127 (lines=4) @@
121
            if (substr($this->router->route->getUrl(), 0, $pos) == substr($this->request['route'], 0, $pos) && isset($this->request['params']))
122
                return true;
123
        }
124
        if (preg_match($regex, $this->router->route->getUrl(), $this->request['parameters'])) {
125
            array_shift($this->request['parameters']);
126
            return true;
127
        }
128
        return false;
129
    }
130
@@ 121-122 (lines=2) @@
118
    {
119
        if (substr($this->request['route'], -1) == '*') {
120
            $pos = strpos($this->request['route'], '*');
121
            if (substr($this->router->route->getUrl(), 0, $pos) == substr($this->request['route'], 0, $pos) && isset($this->request['params']))
122
                return true;
123
        }
124
        if (preg_match($regex, $this->router->route->getUrl(), $this->request['parameters'])) {
125
            array_shift($this->request['parameters']);