Code Duplication    Length = 6-7 lines in 2 locations

src/Routing/Matcher/UriMatcher.php 1 location

@@ 90-96 (lines=7) @@
87
     */
88
    public function match()
89
    {
90
        foreach($this->resolver as $resolver){
91
            if(is_array($target = call_user_func([$this,$resolver]))) {
92
                $this->setTarget($target);
93
                $this->router->response->setStatusCode(202);
94
                return true;
95
            }
96
        }
97
        return false;
98
    }
99

src/Routing/Matcher/ArrayMatcher.php 1 location

@@ 184-189 (lines=6) @@
181
    private function generateTarget()
182
    {
183
        if($this->validMethod())
184
            foreach($this->resolver as $resolver)
185
                if (is_array($target = call_user_func_array([$this,$resolver],[$this->router->route->getCallback()]))) {
186
                    $this->setTarget($target);
187
                    $this->router->response->setStatusCode(202);
188
                    return true;
189
                }
190
        $this->router->response->setStatusCode(405);
191
        return false;
192
    }