Code Duplication    Length = 7-7 lines in 2 locations

src/Route/Router.php 1 location

@@ 352-358 (lines=7) @@
349
     *
350
     * @return class|array as new route(s), class if one added, else array.
351
     */
352
    public function addInternal($rule, $action)
353
    {
354
        $route = new Route();
355
        $route->set($rule, $action);
356
        $this->internalRoutes[$rule] = $route;
357
        return $route;
358
    }
359
360
361

src/Route/RouterInjectable.php 1 location

@@ 257-263 (lines=7) @@
254
     *
255
     * @return class|array as new route(s), class if one added, else array.
256
     */
257
    public function addInternal($rule, $action)
258
    {
259
        $route = new Route();
260
        $route->set($rule, $action);
261
        $this->internalRoutes[$rule] = $route;
262
        return $route;
263
    }
264
265
266