Code Duplication    Length = 14-14 lines in 2 locations

Src/Router/Adaptor/RSymfonyAdaptor.php 1 location

@@ 109-122 (lines=14) @@
106
107
        $symfonyRoutes = new RouteCollection();
108
109
        foreach ($routes as $route) {
110
            $symfonyRoutes->add(
111
                \json_encode($route->getNames()),
112
                new Route(
113
                    $route->getPattern(),
114
                    [$route->getHandler()],
115
                    [],
116
                    [],
117
                    [],
118
                    [],
119
                    [$route->getMethod()]
120
                )
121
            );
122
        }
123
    }
124
125
    /**

Src/Router/Adaptor/SymfonyAdaptor.php 1 location

@@ 95-108 (lines=14) @@
92
    {
93
        $symfonyRoutes = new RouteCollection();
94
95
        foreach ($routes as $route) {
96
            $symfonyRoutes->add(
97
                \json_encode($route->getNames()),
98
                new Route(
99
                    $route->getPattern(),
100
                    [$route->getHandler()],
101
                    [],
102
                    [],
103
                    [],
104
                    [],
105
                    [$route->getMethod()]
106
                )
107
            );
108
        }
109
    }
110
111
    /**