Code Duplication    Length = 6-6 lines in 2 locations

src/Router/Loader/LaravelRoutesLoader.php 1 location

@@ 57-62 (lines=6) @@
54
        // The included file must return the laravel router
55
        include $path;
56
57
        if(!($router instanceof LaravelRouter)) {
58
            throw new \Exception('Invalid return value from '
59
                . pathinfo($path, PATHINFO_FILENAME)
60
                . ' expected instance of LaravelRouter'
61
            );
62
        }
63
64
        return $router;
65
    }

src/Module/AbstractModule.php 1 location

@@ 187-192 (lines=6) @@
184
        // The included file must return the aura router
185
        $router = include $path;
186
187
        if(!($router instanceof AuraRouter)) {
188
            throw new \Exception('Invalid return value from '
189
                . pathinfo($path, PATHINFO_FILENAME)
190
                . ' expected instance of AuraRouter'
191
            );
192
        }
193
194
        foreach($router->getRoutes() as $route) {
195
            $route->addValues(array('_module' => $this->getName()));