Code Duplication    Length = 3-5 lines in 2 locations

src/Router/RouterListener.php 1 location

@@ 102-104 (lines=3) @@
99
                $parameters = $this->matcher->match($request->getPathInfo());
100
            }
101
102
            if (null !== $this->logger) {
103
                $this->logger->info(sprintf('Matched route "%s" (parameters: %s)', $parameters['_route'], $this->parametersToString($parameters)));
104
            }
105
106
            $request->attributes->add($parameters);
107
            unset($parameters['_route']);

src/App.php 1 location

@@ 643-647 (lines=5) @@
640
        try {
641
            // Lets load up our router and match the appropriate route
642
            $parameters = $this->router->matchRequest($request);
643
            if (!empty($parameters)) {
644
                if (null !== $this->logger) {
645
                    $this->logger->info(sprintf('Matched route "%s" (parameters: %s)', $parameters['_route'], $this->router->parametersToString($parameters)));
646
                }
647
            }
648
        } catch (ResourceNotFoundException $e) {
649
            $routeUri = $this->router->generate('Framework_404');
650
            $parameters = $this->router->matchRequest($request::create($routeUri));