diff --git a/src/Commands/stubs/route-provider.stub b/src/Commands/stubs/route-provider.stub index 67f3a6d24..f622e406b 100644 --- a/src/Commands/stubs/route-provider.stub +++ b/src/Commands/stubs/route-provider.stub @@ -9,8 +9,6 @@ class $CLASS$ extends ServiceProvider { /** * The module namespace to assume when generating URLs to actions. - * - * @var string */ protected $moduleNamespace = '$MODULE_NAMESPACE$\$MODULE$\$CONTROLLER_NAMESPACE$'; @@ -18,20 +16,16 @@ class $CLASS$ extends ServiceProvider * Called before routes are registered. * * Register any model bindings or pattern based filters. - * - * @return void */ - public function boot() + public function boot(): void { parent::boot(); } /** * Define the routes for the application. - * - * @return void */ - public function map() + public function map(): void { $this->mapApiRoutes(); @@ -42,10 +36,8 @@ class $CLASS$ extends ServiceProvider * Define the "web" routes for the application. * * These routes all receive session state, CSRF protection, etc. - * - * @return void */ - protected function mapWebRoutes() + protected function mapWebRoutes(): void { Route::middleware('web') ->namespace($this->moduleNamespace) @@ -56,10 +48,8 @@ class $CLASS$ extends ServiceProvider * Define the "api" routes for the application. * * These routes are typically stateless. - * - * @return void */ - protected function mapApiRoutes() + protected function mapApiRoutes(): void { Route::prefix('api') ->middleware('api')