Code Duplication    Length = 5-5 lines in 2 locations

src/Route/Router.php 1 location

@@ 76-80 (lines=5) @@
73
        try {
74
            $match = false;
75
            foreach ($this->routes as $route) {
76
                if ($route->match($path, $method)) {
77
                    $this->lastRoute = $route->getRule();
78
                    $match = true;
79
                    $results = $route->handle($this->di);
80
                }
81
            }
82
83
            if ($match) {

src/Route/RouterInjectable.php 1 location

@@ 44-48 (lines=5) @@
41
        try {
42
            $match = false;
43
            foreach ($this->routes as $route) {
44
                if ($route->match($path, $method)) {
45
                    $this->lastRoute = $route->getRule();
46
                    $match = true;
47
                    $results = $route->handle($this->app);
48
                }
49
            }
50
51
            if ($match) {