Code Duplication    Length = 6-7 lines in 2 locations

src/Routing/Matcher/ArrayMatcher.php 1 location

@@ 144-149 (lines=6) @@
141
    private function generateTarget()
142
    {
143
        if($this->validMethod())
144
            foreach($this->resolver as $resolver)
145
                if (is_array($target = call_user_func_array([$this,$resolver],[$this->router->route->getCallback()]))) {
146
                    $this->setTarget($target);
147
                    $this->router->response->setStatusCode(202);
148
                    return true;
149
                }
150
        $this->router->response->setStatusCode(405);
151
        return false;
152
    }

src/Routing/Matcher/UriMatcher.php 1 location

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