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

@@ 634-638 (lines=5) @@
631
        try {
632
            // Lets load up our router and match the appropriate route
633
            $parameters = $this->router->matchRequest($request);
634
            if (!empty($parameters)) {
635
                if (null !== $this->logger) {
636
                    $this->logger->info(sprintf('Matched route "%s" (parameters: %s)', $parameters['_route'], $this->router->parametersToString($parameters)));
637
                }
638
            }
639
        } catch (ResourceNotFoundException $e) {
640
            $routeUri = $this->router->generate('Framework_404');
641
            $parameters = $this->router->matchRequest($request::create($routeUri));