From dc8a8f0bc9c8e11d05a54eb46b550e54012ef56f Mon Sep 17 00:00:00 2001 From: Solomon Ochepa Date: Thu, 6 Mar 2025 06:33:55 +0100 Subject: [PATCH 1/5] Format code using Laravel and Pint standards --- src/Commands/stubs/action-invoke.stub | 5 +--- src/Commands/stubs/action.stub | 5 +--- src/Commands/stubs/cast.stub | 4 --- src/Commands/stubs/channel.stub | 16 +++--------- src/Commands/stubs/class-invoke.stub | 5 +--- src/Commands/stubs/class.stub | 5 +--- src/Commands/stubs/command.stub | 5 +--- src/Commands/stubs/component-class.stub | 5 +--- src/Commands/stubs/controller-plain.stub | 4 +-- src/Commands/stubs/controller.stub | 15 +++-------- src/Commands/stubs/enum.stub | 5 +--- src/Commands/stubs/event-provider.stub | 5 +--- src/Commands/stubs/event.stub | 5 +--- .../stubs/exception-render-report.stub | 10 ++------ src/Commands/stubs/exception-render.stub | 5 +--- src/Commands/stubs/exception-report.stub | 5 +--- src/Commands/stubs/exception.stub | 5 +--- src/Commands/stubs/helper-invoke.stub | 5 +--- src/Commands/stubs/helper.stub | 5 +--- src/Commands/stubs/interface.stub | 5 +--- src/Commands/stubs/job-queued.stub | 10 ++------ src/Commands/stubs/job.stub | 10 ++------ src/Commands/stubs/listener-duck.stub | 10 ++------ src/Commands/stubs/listener-queued-duck.stub | 10 ++------ src/Commands/stubs/listener-queued.stub | 10 ++------ src/Commands/stubs/listener.stub | 10 ++------ src/Commands/stubs/mail.stub | 5 +--- src/Commands/stubs/migration/plain.stub | 10 ++------ src/Commands/stubs/notification.stub | 5 +--- src/Commands/stubs/observer.stub | 25 ++++--------------- src/Commands/stubs/policy.plain.stub | 5 +--- src/Commands/stubs/provider.stub | 5 +--- src/Commands/stubs/repository-invoke.stub | 5 +--- src/Commands/stubs/repository.stub | 5 +--- src/Commands/stubs/request.stub | 4 +-- src/Commands/stubs/route-provider.stub | 2 +- src/Commands/stubs/rule.implicit.stub | 5 +--- src/Commands/stubs/rule.stub | 5 +--- src/Commands/stubs/scope.stub | 5 +--- src/Commands/stubs/service-invoke.stub | 5 +--- src/Commands/stubs/service.stub | 5 +--- src/Commands/stubs/trait.stub | 5 +--- 42 files changed, 58 insertions(+), 227 deletions(-) diff --git a/src/Commands/stubs/action-invoke.stub b/src/Commands/stubs/action-invoke.stub index d0a85c7af..ae29efcd4 100644 --- a/src/Commands/stubs/action-invoke.stub +++ b/src/Commands/stubs/action-invoke.stub @@ -4,8 +4,5 @@ namespace $CLASS_NAMESPACE$; class $CLASS$ { - public function __invoke() - { - // - } + public function __invoke() {} } diff --git a/src/Commands/stubs/action.stub b/src/Commands/stubs/action.stub index c276ff626..ae58a9c71 100644 --- a/src/Commands/stubs/action.stub +++ b/src/Commands/stubs/action.stub @@ -4,8 +4,5 @@ namespace $CLASS_NAMESPACE$; class $CLASS$ { - public function handle() - { - // - } + public function handle() {} } diff --git a/src/Commands/stubs/cast.stub b/src/Commands/stubs/cast.stub index 5940d82b1..840334ffb 100644 --- a/src/Commands/stubs/cast.stub +++ b/src/Commands/stubs/cast.stub @@ -9,8 +9,6 @@ class $CLASS$ implements CastsAttributes { /** * Cast the given value. - * - * @param array $attributes */ public function get(Model $model, string $key, mixed $value, array $attributes): mixed { @@ -19,8 +17,6 @@ class $CLASS$ implements CastsAttributes /** * Prepare the given value for storage. - * - * @param array $attributes */ public function set(Model $model, string $key, mixed $value, array $attributes): mixed { diff --git a/src/Commands/stubs/channel.stub b/src/Commands/stubs/channel.stub index f68b0b0c8..a010ba95b 100644 --- a/src/Commands/stubs/channel.stub +++ b/src/Commands/stubs/channel.stub @@ -4,21 +4,13 @@ namespace $NAMESPACE$; class $CLASS$ { - /** * Create a new channel instance. */ - public function __construct() - { - // - } - + public function __construct() {} + /** * Authenticate the user's access to the channel. */ - public function join(Operator $user): array|bool - { - // - } - -} \ No newline at end of file + public function join(Operator $user): array|bool {} +} diff --git a/src/Commands/stubs/class-invoke.stub b/src/Commands/stubs/class-invoke.stub index d1981df7c..84664df90 100644 --- a/src/Commands/stubs/class-invoke.stub +++ b/src/Commands/stubs/class-invoke.stub @@ -4,8 +4,5 @@ namespace $NAMESPACE$; class $CLASS$ { - public function __invoke() - { - // - } + public function __invoke() {} } diff --git a/src/Commands/stubs/class.stub b/src/Commands/stubs/class.stub index eb9550a49..9ecd060f0 100644 --- a/src/Commands/stubs/class.stub +++ b/src/Commands/stubs/class.stub @@ -4,8 +4,5 @@ namespace $NAMESPACE$; class $CLASS$ { - public function __construct() - { - // - } + public function __construct() {} } diff --git a/src/Commands/stubs/command.stub b/src/Commands/stubs/command.stub index b4338f664..e2177a0a6 100644 --- a/src/Commands/stubs/command.stub +++ b/src/Commands/stubs/command.stub @@ -29,10 +29,7 @@ class $CLASS$ extends Command /** * Execute the console command. */ - public function handle() - { - // - } + public function handle() {} /** * Get the console command arguments. diff --git a/src/Commands/stubs/component-class.stub b/src/Commands/stubs/component-class.stub index b481950c5..755b97d89 100644 --- a/src/Commands/stubs/component-class.stub +++ b/src/Commands/stubs/component-class.stub @@ -10,10 +10,7 @@ class $CLASS$ extends Component /** * Create a new component instance. */ - public function __construct() - { - // - } + public function __construct() {} /** * Get the view/contents that represent the component. diff --git a/src/Commands/stubs/controller-plain.stub b/src/Commands/stubs/controller-plain.stub index 662b0720a..9702ba742 100644 --- a/src/Commands/stubs/controller-plain.stub +++ b/src/Commands/stubs/controller-plain.stub @@ -4,6 +4,4 @@ namespace $CLASS_NAMESPACE$; use Illuminate\Routing\Controller; -class $CLASS$ extends Controller -{ -} +class $CLASS$ extends Controller {} diff --git a/src/Commands/stubs/controller.stub b/src/Commands/stubs/controller.stub index 610fbd341..79f1b77dd 100644 --- a/src/Commands/stubs/controller.stub +++ b/src/Commands/stubs/controller.stub @@ -26,10 +26,7 @@ class $CLASS$ extends Controller /** * Store a newly created resource in storage. */ - public function store(Request $request) - { - // - } + public function store(Request $request) {} /** * Show the specified resource. @@ -50,16 +47,10 @@ class $CLASS$ extends Controller /** * Update the specified resource in storage. */ - public function update(Request $request, $id) - { - // - } + public function update(Request $request, $id) {} /** * Remove the specified resource from storage. */ - public function destroy($id) - { - // - } + public function destroy($id) {} } diff --git a/src/Commands/stubs/enum.stub b/src/Commands/stubs/enum.stub index 4cbbcbe50..87580ca0b 100644 --- a/src/Commands/stubs/enum.stub +++ b/src/Commands/stubs/enum.stub @@ -2,7 +2,4 @@ namespace $CLASS_NAMESPACE$; -enum $CLASS$ -{ - // -} +enum $CLASS$ {} diff --git a/src/Commands/stubs/event-provider.stub b/src/Commands/stubs/event-provider.stub index f2f67fc8e..af3b5d7a6 100644 --- a/src/Commands/stubs/event-provider.stub +++ b/src/Commands/stubs/event-provider.stub @@ -23,8 +23,5 @@ class $CLASS$ extends ServiceProvider /** * Configure the proper event listeners for email verification. */ - protected function configureEmailVerification(): void - { - // - } + protected function configureEmailVerification(): void {} } diff --git a/src/Commands/stubs/event.stub b/src/Commands/stubs/event.stub index 9a4f2bd5b..048d7f8f6 100644 --- a/src/Commands/stubs/event.stub +++ b/src/Commands/stubs/event.stub @@ -17,10 +17,7 @@ class $CLASS$ /** * Create a new event instance. */ - public function __construct() - { - // - } + public function __construct() {} /** * Get the channels the event should be broadcast on. diff --git a/src/Commands/stubs/exception-render-report.stub b/src/Commands/stubs/exception-render-report.stub index 29fe5dafa..36871540b 100644 --- a/src/Commands/stubs/exception-render-report.stub +++ b/src/Commands/stubs/exception-render-report.stub @@ -11,16 +11,10 @@ class $CLASS$ extends Exception /** * Report the exception. */ - public function report(): void - { - // - } + public function report(): void {} /** * Render the exception as an HTTP response. */ - public function render(Request $request): Response - { - // - } + public function render(Request $request): Response {} } diff --git a/src/Commands/stubs/exception-render.stub b/src/Commands/stubs/exception-render.stub index a4119581a..df968d6de 100644 --- a/src/Commands/stubs/exception-render.stub +++ b/src/Commands/stubs/exception-render.stub @@ -11,8 +11,5 @@ class $CLASS$ extends Exception /** * Render the exception as an HTTP response. */ - public function render(Request $request): Response - { - // - } + public function render(Request $request): Response {} } diff --git a/src/Commands/stubs/exception-report.stub b/src/Commands/stubs/exception-report.stub index 83a33219c..10e374c76 100644 --- a/src/Commands/stubs/exception-report.stub +++ b/src/Commands/stubs/exception-report.stub @@ -9,8 +9,5 @@ class $CLASS$ extends Exception /** * Report the exception. */ - public function report(): void - { - // - } + public function report(): void {} } diff --git a/src/Commands/stubs/exception.stub b/src/Commands/stubs/exception.stub index 9d7046128..49abc57d2 100644 --- a/src/Commands/stubs/exception.stub +++ b/src/Commands/stubs/exception.stub @@ -4,7 +4,4 @@ namespace $CLASS_NAMESPACE$; use Exception; -class $CLASS$ extends Exception -{ - // -} +class $CLASS$ extends Exception {} diff --git a/src/Commands/stubs/helper-invoke.stub b/src/Commands/stubs/helper-invoke.stub index d0a85c7af..ae29efcd4 100644 --- a/src/Commands/stubs/helper-invoke.stub +++ b/src/Commands/stubs/helper-invoke.stub @@ -4,8 +4,5 @@ namespace $CLASS_NAMESPACE$; class $CLASS$ { - public function __invoke() - { - // - } + public function __invoke() {} } diff --git a/src/Commands/stubs/helper.stub b/src/Commands/stubs/helper.stub index c276ff626..ae58a9c71 100644 --- a/src/Commands/stubs/helper.stub +++ b/src/Commands/stubs/helper.stub @@ -4,8 +4,5 @@ namespace $CLASS_NAMESPACE$; class $CLASS$ { - public function handle() - { - // - } + public function handle() {} } diff --git a/src/Commands/stubs/interface.stub b/src/Commands/stubs/interface.stub index ddf7c371d..e946b3527 100644 --- a/src/Commands/stubs/interface.stub +++ b/src/Commands/stubs/interface.stub @@ -2,7 +2,4 @@ namespace $CLASS_NAMESPACE$; -interface $CLASS$ -{ - -} +interface $CLASS$ {} diff --git a/src/Commands/stubs/job-queued.stub b/src/Commands/stubs/job-queued.stub index 26dd3f0de..535ec69d2 100644 --- a/src/Commands/stubs/job-queued.stub +++ b/src/Commands/stubs/job-queued.stub @@ -15,16 +15,10 @@ class $CLASS$ implements ShouldQueue /** * Create a new job instance. */ - public function __construct() - { - // - } + public function __construct() {} /** * Execute the job. */ - public function handle(): void - { - // - } + public function handle(): void {} } diff --git a/src/Commands/stubs/job.stub b/src/Commands/stubs/job.stub index 84d0bb992..4fcad649e 100644 --- a/src/Commands/stubs/job.stub +++ b/src/Commands/stubs/job.stub @@ -12,16 +12,10 @@ class $CLASS$ implements ShouldQueue /** * Create a new job instance. */ - public function __construct() - { - // - } + public function __construct() {} /** * Execute the job. */ - public function handle(): void - { - // - } + public function handle(): void {} } diff --git a/src/Commands/stubs/listener-duck.stub b/src/Commands/stubs/listener-duck.stub index d78019275..aac154023 100644 --- a/src/Commands/stubs/listener-duck.stub +++ b/src/Commands/stubs/listener-duck.stub @@ -10,16 +10,10 @@ class $CLASS$ /** * Create the event listener. */ - public function __construct() - { - // - } + public function __construct() {} /** * Handle the event. */ - public function handle($event): void - { - // - } + public function handle($event): void {} } diff --git a/src/Commands/stubs/listener-queued-duck.stub b/src/Commands/stubs/listener-queued-duck.stub index f80d5d6f2..041a49a09 100644 --- a/src/Commands/stubs/listener-queued-duck.stub +++ b/src/Commands/stubs/listener-queued-duck.stub @@ -12,16 +12,10 @@ class $CLASS$ implements ShouldQueue /** * Create the event listener */ - public function __construct() - { - // - } + public function __construct() {} /** * Handle the event. */ - public function handle($event): void - { - // - } + public function handle($event): void {} } diff --git a/src/Commands/stubs/listener-queued.stub b/src/Commands/stubs/listener-queued.stub index 68e67b9ac..5e0eee23c 100644 --- a/src/Commands/stubs/listener-queued.stub +++ b/src/Commands/stubs/listener-queued.stub @@ -13,16 +13,10 @@ class $CLASS$ implements ShouldQueue /** * Create the event listener. */ - public function __construct() - { - // - } + public function __construct() {} /** * Handle the event. */ - public function handle($SHORTEVENTNAME$ $event): void - { - // - } + public function handle($SHORTEVENTNAME$ $event): void {} } diff --git a/src/Commands/stubs/listener.stub b/src/Commands/stubs/listener.stub index 44361865d..ffdf0231a 100644 --- a/src/Commands/stubs/listener.stub +++ b/src/Commands/stubs/listener.stub @@ -11,16 +11,10 @@ class $CLASS$ /** * Create the event listener. */ - public function __construct() - { - // - } + public function __construct() {} /** * Handle the event. */ - public function handle($SHORTEVENTNAME$ $event): void - { - // - } + public function handle($SHORTEVENTNAME$ $event): void {} } diff --git a/src/Commands/stubs/mail.stub b/src/Commands/stubs/mail.stub index 67159f898..6bea3147b 100644 --- a/src/Commands/stubs/mail.stub +++ b/src/Commands/stubs/mail.stub @@ -14,10 +14,7 @@ class $CLASS$ extends Mailable /** * Create a new message instance. */ - public function __construct() - { - // - } + public function __construct() {} /** * Build the message. diff --git a/src/Commands/stubs/migration/plain.stub b/src/Commands/stubs/migration/plain.stub index 88fa2f36b..d94404c41 100644 --- a/src/Commands/stubs/migration/plain.stub +++ b/src/Commands/stubs/migration/plain.stub @@ -9,16 +9,10 @@ return new class extends Migration /** * Run the migrations. */ - public function up(): void - { - // - } + public function up(): void {} /** * Reverse the migrations. */ - public function down(): void - { - // - } + public function down(): void {} }; diff --git a/src/Commands/stubs/notification.stub b/src/Commands/stubs/notification.stub index 691a91aea..953783c6b 100644 --- a/src/Commands/stubs/notification.stub +++ b/src/Commands/stubs/notification.stub @@ -14,10 +14,7 @@ class $CLASS$ extends Notification /** * Create a new notification instance. */ - public function __construct() - { - // - } + public function __construct() {} /** * Get the notification's delivery channels. diff --git a/src/Commands/stubs/observer.stub b/src/Commands/stubs/observer.stub index ca498635f..e74fe90ce 100644 --- a/src/Commands/stubs/observer.stub +++ b/src/Commands/stubs/observer.stub @@ -9,40 +9,25 @@ class $NAME$Observer /** * Handle the $NAME$ "created" event. */ - public function created($NAME$ $NAME_VARIABLE$): void - { - // - } + public function created($NAME$ $NAME_VARIABLE$): void {} /** * Handle the $NAME$ "updated" event. */ - public function updated($NAME$ $NAME_VARIABLE$): void - { - // - } + public function updated($NAME$ $NAME_VARIABLE$): void {} /** * Handle the $NAME$ "deleted" event. */ - public function deleted($NAME$ $NAME_VARIABLE$): void - { - // - } + public function deleted($NAME$ $NAME_VARIABLE$): void {} /** * Handle the $NAME$ "restored" event. */ - public function restored($NAME$ $NAME_VARIABLE$): void - { - // - } + public function restored($NAME$ $NAME_VARIABLE$): void {} /** * Handle the $NAME$ "force deleted" event. */ - public function forceDeleted($NAME$ $NAME_VARIABLE$): void - { - // - } + public function forceDeleted($NAME$ $NAME_VARIABLE$): void {} } diff --git a/src/Commands/stubs/policy.plain.stub b/src/Commands/stubs/policy.plain.stub index 17d0c99a1..96c623c4f 100644 --- a/src/Commands/stubs/policy.plain.stub +++ b/src/Commands/stubs/policy.plain.stub @@ -11,8 +11,5 @@ class $CLASS$ /** * Create a new policy instance. */ - public function __construct() - { - // - } + public function __construct() {} } diff --git a/src/Commands/stubs/provider.stub b/src/Commands/stubs/provider.stub index 535c8b6ef..ee4312f49 100644 --- a/src/Commands/stubs/provider.stub +++ b/src/Commands/stubs/provider.stub @@ -9,10 +9,7 @@ class $CLASS$ extends ServiceProvider /** * Register the service provider. */ - public function register(): void - { - // - } + public function register(): void {} /** * Get the services provided by the provider. diff --git a/src/Commands/stubs/repository-invoke.stub b/src/Commands/stubs/repository-invoke.stub index d0a85c7af..ae29efcd4 100644 --- a/src/Commands/stubs/repository-invoke.stub +++ b/src/Commands/stubs/repository-invoke.stub @@ -4,8 +4,5 @@ namespace $CLASS_NAMESPACE$; class $CLASS$ { - public function __invoke() - { - // - } + public function __invoke() {} } diff --git a/src/Commands/stubs/repository.stub b/src/Commands/stubs/repository.stub index c276ff626..ae58a9c71 100644 --- a/src/Commands/stubs/repository.stub +++ b/src/Commands/stubs/repository.stub @@ -4,8 +4,5 @@ namespace $CLASS_NAMESPACE$; class $CLASS$ { - public function handle() - { - // - } + public function handle() {} } diff --git a/src/Commands/stubs/request.stub b/src/Commands/stubs/request.stub index 202d2e0dd..601fe7006 100644 --- a/src/Commands/stubs/request.stub +++ b/src/Commands/stubs/request.stub @@ -11,9 +11,7 @@ class $CLASS$ extends FormRequest */ public function rules(): array { - return [ - // - ]; + return []; } /** diff --git a/src/Commands/stubs/route-provider.stub b/src/Commands/stubs/route-provider.stub index cf72681fb..937037af7 100644 --- a/src/Commands/stubs/route-provider.stub +++ b/src/Commands/stubs/route-provider.stub @@ -2,8 +2,8 @@ namespace $NAMESPACE$; -use Illuminate\Support\Facades\Route; use Illuminate\Foundation\Support\Providers\RouteServiceProvider as ServiceProvider; +use Illuminate\Support\Facades\Route; class $CLASS$ extends ServiceProvider { diff --git a/src/Commands/stubs/rule.implicit.stub b/src/Commands/stubs/rule.implicit.stub index edc029c29..635cbd2d0 100644 --- a/src/Commands/stubs/rule.implicit.stub +++ b/src/Commands/stubs/rule.implicit.stub @@ -15,8 +15,5 @@ class $CLASS$ implements ValidationRule /** * Run the validation rule. */ - public function validate(string $attribute, mixed $value, Closure $fail): void - { - // - } + public function validate(string $attribute, mixed $value, Closure $fail): void {} } diff --git a/src/Commands/stubs/rule.stub b/src/Commands/stubs/rule.stub index 73556f152..c5653395d 100644 --- a/src/Commands/stubs/rule.stub +++ b/src/Commands/stubs/rule.stub @@ -10,8 +10,5 @@ class $CLASS$ implements ValidationRule /** * Run the validation rule. */ - public function validate(string $attribute, mixed $value, Closure $fail): void - { - // - } + public function validate(string $attribute, mixed $value, Closure $fail): void {} } diff --git a/src/Commands/stubs/scope.stub b/src/Commands/stubs/scope.stub index 0543ad05b..2bbe73f7c 100644 --- a/src/Commands/stubs/scope.stub +++ b/src/Commands/stubs/scope.stub @@ -11,8 +11,5 @@ class $CLASS$ implements Scope /** * Apply the scope to a given Eloquent query builder. */ - public function apply(Builder $builder, Model $model): void - { - // - } + public function apply(Builder $builder, Model $model): void {} } diff --git a/src/Commands/stubs/service-invoke.stub b/src/Commands/stubs/service-invoke.stub index d0a85c7af..ae29efcd4 100644 --- a/src/Commands/stubs/service-invoke.stub +++ b/src/Commands/stubs/service-invoke.stub @@ -4,8 +4,5 @@ namespace $CLASS_NAMESPACE$; class $CLASS$ { - public function __invoke() - { - // - } + public function __invoke() {} } diff --git a/src/Commands/stubs/service.stub b/src/Commands/stubs/service.stub index c276ff626..ae58a9c71 100644 --- a/src/Commands/stubs/service.stub +++ b/src/Commands/stubs/service.stub @@ -4,8 +4,5 @@ namespace $CLASS_NAMESPACE$; class $CLASS$ { - public function handle() - { - // - } + public function handle() {} } diff --git a/src/Commands/stubs/trait.stub b/src/Commands/stubs/trait.stub index 0a03ae4fb..86f115137 100644 --- a/src/Commands/stubs/trait.stub +++ b/src/Commands/stubs/trait.stub @@ -2,7 +2,4 @@ namespace $CLASS_NAMESPACE$; -trait $CLASS$ -{ - // -} +trait $CLASS$ {} From 6acbbaeb3f2bac9a27b6fcea1c6c5c2920c3bf98 Mon Sep 17 00:00:00 2001 From: Solomon Ochepa Date: Thu, 6 Mar 2025 06:36:49 +0100 Subject: [PATCH 2/5] Remove the routes comments Following Laravel recent route files recommendation to keep the file clean and simple --- src/Commands/stubs/routes/api.stub | 11 ----------- src/Commands/stubs/routes/web.stub | 11 ----------- 2 files changed, 22 deletions(-) mode change 100755 => 100644 src/Commands/stubs/routes/api.stub diff --git a/src/Commands/stubs/routes/api.stub b/src/Commands/stubs/routes/api.stub old mode 100755 new mode 100644 index c99a9bbbb..0d427d3b5 --- a/src/Commands/stubs/routes/api.stub +++ b/src/Commands/stubs/routes/api.stub @@ -3,17 +3,6 @@ use Illuminate\Support\Facades\Route; use $MODULE_NAMESPACE$\$STUDLY_NAME$\$CONTROLLER_NAMESPACE$\$STUDLY_NAME$Controller; -/* - *-------------------------------------------------------------------------- - * API Routes - *-------------------------------------------------------------------------- - * - * Here is where you can register API routes for your application. These - * routes are loaded by the RouteServiceProvider within a group which - * is assigned the "api" middleware group. Enjoy building your API! - * -*/ - Route::middleware(['auth:sanctum'])->prefix('v1')->group(function () { Route::apiResource('$LOWER_NAME$', $STUDLY_NAME$Controller::class)->names('$LOWER_NAME$'); }); diff --git a/src/Commands/stubs/routes/web.stub b/src/Commands/stubs/routes/web.stub index c00f766d9..1e40fe07e 100755 --- a/src/Commands/stubs/routes/web.stub +++ b/src/Commands/stubs/routes/web.stub @@ -3,17 +3,6 @@ use Illuminate\Support\Facades\Route; use $MODULE_NAMESPACE$\$STUDLY_NAME$\$CONTROLLER_NAMESPACE$\$STUDLY_NAME$Controller; -/* -|-------------------------------------------------------------------------- -| Web Routes -|-------------------------------------------------------------------------- -| -| Here is where you can register web routes for your application. These -| routes are loaded by the RouteServiceProvider within a group which -| contains the "web" middleware group. Now create something great! -| -*/ - Route::group([], function () { Route::resource('$LOWER_NAME$', $STUDLY_NAME$Controller::class)->names('$LOWER_NAME$'); }); From 25fb5bce0754c6b7797947cefeb85cfe6edb7908 Mon Sep 17 00:00:00 2001 From: Solomon Ochepa Date: Thu, 6 Mar 2025 06:39:50 +0100 Subject: [PATCH 3/5] Apply the auth middleware to modules by default Modules are major features, not ordinary components. --- src/Commands/stubs/routes/web.stub | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) mode change 100755 => 100644 src/Commands/stubs/routes/web.stub diff --git a/src/Commands/stubs/routes/web.stub b/src/Commands/stubs/routes/web.stub old mode 100755 new mode 100644 index 1e40fe07e..94ef53fee --- a/src/Commands/stubs/routes/web.stub +++ b/src/Commands/stubs/routes/web.stub @@ -3,6 +3,6 @@ use Illuminate\Support\Facades\Route; use $MODULE_NAMESPACE$\$STUDLY_NAME$\$CONTROLLER_NAMESPACE$\$STUDLY_NAME$Controller; -Route::group([], function () { +Route::middleware(['auth', 'verified'])->group(function () { Route::resource('$LOWER_NAME$', $STUDLY_NAME$Controller::class)->names('$LOWER_NAME$'); }); From 46cfda5d9136cfc303c730ea13b68e7be6695c60 Mon Sep 17 00:00:00 2001 From: Solomon Ochepa Date: Thu, 6 Mar 2025 06:42:45 +0100 Subject: [PATCH 4/5] Apply modern Laravel layout design Laravel is using component base layouts for a very long time now, why are we still stock with @extends, @section and @yield? --- src/Commands/stubs/views/index.stub | 6 ++--- src/Commands/stubs/views/master.stub | 40 ++++++++++++++-------------- 2 files changed, 22 insertions(+), 24 deletions(-) diff --git a/src/Commands/stubs/views/index.stub b/src/Commands/stubs/views/index.stub index 1a535d44b..4cc054209 100644 --- a/src/Commands/stubs/views/index.stub +++ b/src/Commands/stubs/views/index.stub @@ -1,7 +1,5 @@ -@extends('$LOWER_NAME$::layouts.master') - -@section('content') +

Hello World

Module: {!! config('$LOWER_NAME$.name') !!}

-@endsection +
diff --git a/src/Commands/stubs/views/master.stub b/src/Commands/stubs/views/master.stub index d1347bd0c..81cc70c3e 100644 --- a/src/Commands/stubs/views/master.stub +++ b/src/Commands/stubs/views/master.stub @@ -1,29 +1,29 @@ - - - - - + + + + + - $STUDLY_NAME$ Module - {{ config('app.name', 'Laravel') }} + $STUDLY_NAME$ Module - {{ config('app.name', 'Laravel') }} - - - + + + - - - + + + - {{-- Vite CSS --}} - {{-- {{ module_vite('build-$LOWER_NAME$', 'resources/assets/sass/app.scss', storage_path('vite.hot')) }} --}} - + {{-- Vite CSS --}} + {{-- {{ module_vite('build-$LOWER_NAME$', 'resources/assets/sass/app.scss') }} --}} + - - @yield('content') + + {{ $slot }} - {{-- Vite JS --}} - {{-- {{ module_vite('build-$LOWER_NAME$', 'resources/assets/js/app.js', storage_path('vite.hot')) }} --}} - + {{-- Vite JS --}} + {{-- {{ module_vite('build-$LOWER_NAME$', 'resources/assets/js/app.js') }} --}} + From ef881153b8e8be719702452da8c3a192f11d4f72 Mon Sep 17 00:00:00 2001 From: Solomon Ochepa Date: Thu, 6 Mar 2025 07:03:06 +0100 Subject: [PATCH 5/5] Update tests snapshots --- ...mespace_with_correct_generated_file__1.txt | 5 +--- ...generated_correct_file_with_content__1.txt | 5 +--- ...mespace_with_correct_generated_file__1.txt | 4 --- ...generated_correct_file_with_content__1.txt | 4 --- ...it_can_change_the_default_namespace__1.txt | 16 +++--------- ...ange_the_default_namespace_specific__1.txt | 16 +++--------- ...generated_correct_file_with_content__1.txt | 16 +++--------- ...mespace_with_correct_generated_file__1.txt | 5 +--- ...generated_correct_file_with_content__1.txt | 5 +--- ...it_can_change_the_default_namespace__1.txt | 5 +--- ...ange_the_default_namespace_specific__1.txt | 5 +--- ...generated_correct_file_with_content__1.txt | 5 +--- ...t_it_uses_set_command_name_in_class__1.txt | 5 +--- ...it_can_change_the_default_namespace__1.txt | 5 +--- ...generated_correct_file_with_content__1.txt | 5 +--- ...roller_to_class_name_if_not_present__1.txt | 15 +++-------- ...it_can_change_the_default_namespace__1.txt | 15 +++-------- ...ange_the_default_namespace_specific__1.txt | 15 +++-------- ...mespace_with_correct_generated_file__1.txt | 15 +++-------- ...generated_correct_file_with_content__1.txt | 15 +++-------- ...est_it_generates_a_plain_controller__1.txt | 4 +-- ...mespace_with_correct_generated_file__1.txt | 5 +--- ...generated_correct_file_with_content__1.txt | 5 +--- ...it_can_change_the_default_namespace__1.txt | 5 +--- ...ange_the_default_namespace_specific__1.txt | 5 +--- ...generated_correct_file_with_content__1.txt | 5 +--- ...generated_correct_file_with_content__1.txt | 5 +--- ...mespace_with_correct_generated_file__1.txt | 5 +--- ...generated_correct_file_with_content__1.txt | 5 +--- ...mespace_with_correct_generated_file__1.txt | 5 +--- ...generated_correct_file_with_content__1.txt | 5 +--- ...mespace_with_correct_generated_file__1.txt | 5 +--- ...generated_correct_file_with_content__1.txt | 5 +--- ...it_can_change_the_default_namespace__1.txt | 10 ++------ ...ange_the_default_namespace_specific__1.txt | 10 ++------ ...generated_correct_file_with_content__1.txt | 10 ++------ ..._correct_sync_job_file_with_content__1.txt | 10 ++------ ...it_can_change_the_default_namespace__1.txt | 10 ++------ ...ange_the_default_namespace_specific__1.txt | 10 ++------ ...rect_queued_duck_event_with_content__1.txt | 10 ++------ ...vent_in_a_subdirectory_with_content__1.txt | 10 ++------ ...d_correct_queued_event_with_content__1.txt | 10 ++------ ...orrect_sync_duck_event_with_content__1.txt | 10 ++------ ...vent_in_a_subdirectory_with_content__1.txt | 10 ++------ ...ted_correct_sync_event_with_content__1.txt | 10 ++------ ...it_can_change_the_default_namespace__1.txt | 5 +--- ...ange_the_default_namespace_specific__1.txt | 5 +--- ...generated_correct_file_with_content__1.txt | 5 +--- ...rect_default_migration_file_content__1.txt | 10 ++------ ...gration_when_both_flags_are_present__1.txt | 15 +++-------- ...enerates_controller_file_with_model__1.txt | 15 +++-------- ...le_with_model_using_shortcut_option__1.txt | 15 +++-------- ...enable_and_route_provider_is_enable__2.txt | 2 +- ...generates_api_module_with_resources__4.txt | 2 +- ...t__test_it_generates_api_route_file__1.txt | 11 -------- ...ith_multi_segment_default_namespace__1.txt | 11 -------- ..._test_it_generates_module_resources__2.txt | 5 +--- ..._test_it_generates_module_resources__3.txt | 2 +- ..._test_it_generates_module_resources__4.txt | 15 +++-------- ...generates_web_module_with_resources__2.txt | 15 +++-------- ...generates_web_module_with_resources__4.txt | 2 +- ...es_when_adding_more_than_one_option__2.txt | 15 +++-------- ...es_when_adding_more_than_one_option__4.txt | 2 +- ...t__test_it_generates_web_route_file__1.txt | 13 +--------- ...ith_multi_segment_default_namespace__1.txt | 13 +--------- ...it_can_change_the_default_namespace__1.txt | 5 +--- ...ange_the_default_namespace_specific__1.txt | 5 +--- ...generated_correct_file_with_content__1.txt | 5 +--- ...CommandTest__test_it_makes_observer__1.txt | 25 ++++--------------- ...it_can_change_the_default_namespace__1.txt | 5 +--- ...ange_the_default_namespace_specific__1.txt | 5 +--- ...keCommandTest__test_it_makes_policy__1.txt | 5 +--- ...generated_correct_file_with_content__1.txt | 5 +--- ...mespace_with_correct_generated_file__1.txt | 5 +--- ...generated_correct_file_with_content__1.txt | 5 +--- ...it_can_change_the_default_namespace__1.txt | 4 +-- ...ange_the_default_namespace_specific__1.txt | 4 +-- ...generated_correct_file_with_content__1.txt | 4 +-- ...nge_the_custom_controller_namespace__1.txt | 2 +- ...it_can_change_the_default_namespace__1.txt | 2 +- ...ange_the_default_namespace_specific__1.txt | 2 +- ...andTest__test_it_can_overwrite_file__1.txt | 2 +- ...t_it_can_overwrite_route_file_names__1.txt | 2 +- ...generated_correct_file_with_content__1.txt | 2 +- ...it_can_change_the_default_namespace__1.txt | 5 +--- ...ange_the_default_namespace_specific__1.txt | 5 +--- ...ndTest__test_it_makes_implicit_rule__1.txt | 5 +--- ...MakeCommandTest__test_it_makes_rule__1.txt | 5 +--- ...mespace_with_correct_generated_file__1.txt | 5 +--- ...generated_correct_file_with_content__1.txt | 5 +--- ...mespace_with_correct_generated_file__1.txt | 5 +--- ...generated_correct_file_with_content__1.txt | 5 +--- ...mespace_with_correct_generated_file__1.txt | 5 +--- ...generated_correct_file_with_content__1.txt | 5 +--- 94 files changed, 138 insertions(+), 549 deletions(-) diff --git a/tests/Commands/Make/__snapshots__/ActionMakeCommandTest__test_it_can_generate_a_action_in_sub_namespace_with_correct_generated_file__1.txt b/tests/Commands/Make/__snapshots__/ActionMakeCommandTest__test_it_can_generate_a_action_in_sub_namespace_with_correct_generated_file__1.txt index b21fb56ef..510bafe9f 100644 --- a/tests/Commands/Make/__snapshots__/ActionMakeCommandTest__test_it_can_generate_a_action_in_sub_namespace_with_correct_generated_file__1.txt +++ b/tests/Commands/Make/__snapshots__/ActionMakeCommandTest__test_it_can_generate_a_action_in_sub_namespace_with_correct_generated_file__1.txt @@ -4,8 +4,5 @@ namespace Modules\Blog\Actions\Api; class MyAction { - public function handle() - { - // - } + public function handle() {} } diff --git a/tests/Commands/Make/__snapshots__/ActionMakeCommandTest__test_it_generated_correct_file_with_content__1.txt b/tests/Commands/Make/__snapshots__/ActionMakeCommandTest__test_it_generated_correct_file_with_content__1.txt index a90bb9726..b842405e1 100644 --- a/tests/Commands/Make/__snapshots__/ActionMakeCommandTest__test_it_generated_correct_file_with_content__1.txt +++ b/tests/Commands/Make/__snapshots__/ActionMakeCommandTest__test_it_generated_correct_file_with_content__1.txt @@ -4,8 +4,5 @@ namespace Modules\Blog\Actions; class MyAction { - public function handle() - { - // - } + public function handle() {} } diff --git a/tests/Commands/Make/__snapshots__/CastMakeCommandTest__test_it_can_generate_a_cast_in_sub_namespace_with_correct_generated_file__1.txt b/tests/Commands/Make/__snapshots__/CastMakeCommandTest__test_it_can_generate_a_cast_in_sub_namespace_with_correct_generated_file__1.txt index 424d24700..d3fa1d49f 100644 --- a/tests/Commands/Make/__snapshots__/CastMakeCommandTest__test_it_can_generate_a_cast_in_sub_namespace_with_correct_generated_file__1.txt +++ b/tests/Commands/Make/__snapshots__/CastMakeCommandTest__test_it_can_generate_a_cast_in_sub_namespace_with_correct_generated_file__1.txt @@ -9,8 +9,6 @@ class MyCast implements CastsAttributes { /** * Cast the given value. - * - * @param array $attributes */ public function get(Model $model, string $key, mixed $value, array $attributes): mixed { @@ -19,8 +17,6 @@ class MyCast implements CastsAttributes /** * Prepare the given value for storage. - * - * @param array $attributes */ public function set(Model $model, string $key, mixed $value, array $attributes): mixed { diff --git a/tests/Commands/Make/__snapshots__/CastMakeCommandTest__test_it_generated_correct_file_with_content__1.txt b/tests/Commands/Make/__snapshots__/CastMakeCommandTest__test_it_generated_correct_file_with_content__1.txt index 05d8e3e37..2aee958f4 100644 --- a/tests/Commands/Make/__snapshots__/CastMakeCommandTest__test_it_generated_correct_file_with_content__1.txt +++ b/tests/Commands/Make/__snapshots__/CastMakeCommandTest__test_it_generated_correct_file_with_content__1.txt @@ -9,8 +9,6 @@ class MyCast implements CastsAttributes { /** * Cast the given value. - * - * @param array $attributes */ public function get(Model $model, string $key, mixed $value, array $attributes): mixed { @@ -19,8 +17,6 @@ class MyCast implements CastsAttributes /** * Prepare the given value for storage. - * - * @param array $attributes */ public function set(Model $model, string $key, mixed $value, array $attributes): mixed { diff --git a/tests/Commands/Make/__snapshots__/ChannelMakeCommandTest__test_it_can_change_the_default_namespace__1.txt b/tests/Commands/Make/__snapshots__/ChannelMakeCommandTest__test_it_can_change_the_default_namespace__1.txt index 55d364bf9..4c396d74c 100644 --- a/tests/Commands/Make/__snapshots__/ChannelMakeCommandTest__test_it_can_change_the_default_namespace__1.txt +++ b/tests/Commands/Make/__snapshots__/ChannelMakeCommandTest__test_it_can_change_the_default_namespace__1.txt @@ -4,21 +4,13 @@ namespace Modules\Blog\SuperChannel; class WelcomeChannel { - /** * Create a new channel instance. */ - public function __construct() - { - // - } - + public function __construct() {} + /** * Authenticate the user's access to the channel. */ - public function join(Operator $user): array|bool - { - // - } - -} \ No newline at end of file + public function join(Operator $user): array|bool {} +} diff --git a/tests/Commands/Make/__snapshots__/ChannelMakeCommandTest__test_it_can_change_the_default_namespace_specific__1.txt b/tests/Commands/Make/__snapshots__/ChannelMakeCommandTest__test_it_can_change_the_default_namespace_specific__1.txt index 55d364bf9..4c396d74c 100644 --- a/tests/Commands/Make/__snapshots__/ChannelMakeCommandTest__test_it_can_change_the_default_namespace_specific__1.txt +++ b/tests/Commands/Make/__snapshots__/ChannelMakeCommandTest__test_it_can_change_the_default_namespace_specific__1.txt @@ -4,21 +4,13 @@ namespace Modules\Blog\SuperChannel; class WelcomeChannel { - /** * Create a new channel instance. */ - public function __construct() - { - // - } - + public function __construct() {} + /** * Authenticate the user's access to the channel. */ - public function join(Operator $user): array|bool - { - // - } - -} \ No newline at end of file + public function join(Operator $user): array|bool {} +} diff --git a/tests/Commands/Make/__snapshots__/ChannelMakeCommandTest__test_it_generated_correct_file_with_content__1.txt b/tests/Commands/Make/__snapshots__/ChannelMakeCommandTest__test_it_generated_correct_file_with_content__1.txt index 82072002d..ccc59bf57 100644 --- a/tests/Commands/Make/__snapshots__/ChannelMakeCommandTest__test_it_generated_correct_file_with_content__1.txt +++ b/tests/Commands/Make/__snapshots__/ChannelMakeCommandTest__test_it_generated_correct_file_with_content__1.txt @@ -4,21 +4,13 @@ namespace Modules\Blog\Broadcasting; class WelcomeChannel { - /** * Create a new channel instance. */ - public function __construct() - { - // - } - + public function __construct() {} + /** * Authenticate the user's access to the channel. */ - public function join(Operator $user): array|bool - { - // - } - -} \ No newline at end of file + public function join(Operator $user): array|bool {} +} diff --git a/tests/Commands/Make/__snapshots__/ClassMakeCommandTest__test_it_can_generate_a_class_in_sub_namespace_with_correct_generated_file__1.txt b/tests/Commands/Make/__snapshots__/ClassMakeCommandTest__test_it_can_generate_a_class_in_sub_namespace_with_correct_generated_file__1.txt index 95a14846e..ca8befc8d 100644 --- a/tests/Commands/Make/__snapshots__/ClassMakeCommandTest__test_it_can_generate_a_class_in_sub_namespace_with_correct_generated_file__1.txt +++ b/tests/Commands/Make/__snapshots__/ClassMakeCommandTest__test_it_can_generate_a_class_in_sub_namespace_with_correct_generated_file__1.txt @@ -4,8 +4,5 @@ namespace Modules\Blog\Classes\Api; class Api\Demo { - public function __construct() - { - // - } + public function __construct() {} } diff --git a/tests/Commands/Make/__snapshots__/ClassMakeCommandTest__test_it_generated_correct_file_with_content__1.txt b/tests/Commands/Make/__snapshots__/ClassMakeCommandTest__test_it_generated_correct_file_with_content__1.txt index a8643c7fc..213c4f6cb 100644 --- a/tests/Commands/Make/__snapshots__/ClassMakeCommandTest__test_it_generated_correct_file_with_content__1.txt +++ b/tests/Commands/Make/__snapshots__/ClassMakeCommandTest__test_it_generated_correct_file_with_content__1.txt @@ -4,8 +4,5 @@ namespace Modules\Blog\Classes; class Demo { - public function __construct() - { - // - } + public function __construct() {} } diff --git a/tests/Commands/Make/__snapshots__/CommandMakeCommandTest__test_it_can_change_the_default_namespace__1.txt b/tests/Commands/Make/__snapshots__/CommandMakeCommandTest__test_it_can_change_the_default_namespace__1.txt index 4a142f902..e233deef9 100644 --- a/tests/Commands/Make/__snapshots__/CommandMakeCommandTest__test_it_can_change_the_default_namespace__1.txt +++ b/tests/Commands/Make/__snapshots__/CommandMakeCommandTest__test_it_can_change_the_default_namespace__1.txt @@ -29,10 +29,7 @@ class AwesomeCommand extends Command /** * Execute the console command. */ - public function handle() - { - // - } + public function handle() {} /** * Get the console command arguments. diff --git a/tests/Commands/Make/__snapshots__/CommandMakeCommandTest__test_it_can_change_the_default_namespace_specific__1.txt b/tests/Commands/Make/__snapshots__/CommandMakeCommandTest__test_it_can_change_the_default_namespace_specific__1.txt index 454a9fbc5..c69a70dfc 100644 --- a/tests/Commands/Make/__snapshots__/CommandMakeCommandTest__test_it_can_change_the_default_namespace_specific__1.txt +++ b/tests/Commands/Make/__snapshots__/CommandMakeCommandTest__test_it_can_change_the_default_namespace_specific__1.txt @@ -29,10 +29,7 @@ class AwesomeCommand extends Command /** * Execute the console command. */ - public function handle() - { - // - } + public function handle() {} /** * Get the console command arguments. diff --git a/tests/Commands/Make/__snapshots__/CommandMakeCommandTest__test_it_generated_correct_file_with_content__1.txt b/tests/Commands/Make/__snapshots__/CommandMakeCommandTest__test_it_generated_correct_file_with_content__1.txt index 1056c9200..a3f647edc 100644 --- a/tests/Commands/Make/__snapshots__/CommandMakeCommandTest__test_it_generated_correct_file_with_content__1.txt +++ b/tests/Commands/Make/__snapshots__/CommandMakeCommandTest__test_it_generated_correct_file_with_content__1.txt @@ -29,10 +29,7 @@ class MyAwesomeCommand extends Command /** * Execute the console command. */ - public function handle() - { - // - } + public function handle() {} /** * Get the console command arguments. diff --git a/tests/Commands/Make/__snapshots__/CommandMakeCommandTest__test_it_uses_set_command_name_in_class__1.txt b/tests/Commands/Make/__snapshots__/CommandMakeCommandTest__test_it_uses_set_command_name_in_class__1.txt index 7b9e87c70..406c536f4 100644 --- a/tests/Commands/Make/__snapshots__/CommandMakeCommandTest__test_it_uses_set_command_name_in_class__1.txt +++ b/tests/Commands/Make/__snapshots__/CommandMakeCommandTest__test_it_uses_set_command_name_in_class__1.txt @@ -29,10 +29,7 @@ class MyAwesomeCommand extends Command /** * Execute the console command. */ - public function handle() - { - // - } + public function handle() {} /** * Get the console command arguments. diff --git a/tests/Commands/Make/__snapshots__/ComponentClassMakeCommandTest__test_it_can_change_the_default_namespace__1.txt b/tests/Commands/Make/__snapshots__/ComponentClassMakeCommandTest__test_it_can_change_the_default_namespace__1.txt index 259ea2d5b..77ae098ba 100644 --- a/tests/Commands/Make/__snapshots__/ComponentClassMakeCommandTest__test_it_can_change_the_default_namespace__1.txt +++ b/tests/Commands/Make/__snapshots__/ComponentClassMakeCommandTest__test_it_can_change_the_default_namespace__1.txt @@ -10,10 +10,7 @@ class Blog extends Component /** * Create a new component instance. */ - public function __construct() - { - // - } + public function __construct() {} /** * Get the view/contents that represent the component. diff --git a/tests/Commands/Make/__snapshots__/ComponentClassMakeCommandTest__test_it_generated_correct_file_with_content__1.txt b/tests/Commands/Make/__snapshots__/ComponentClassMakeCommandTest__test_it_generated_correct_file_with_content__1.txt index 8b8740afc..e98526b75 100644 --- a/tests/Commands/Make/__snapshots__/ComponentClassMakeCommandTest__test_it_generated_correct_file_with_content__1.txt +++ b/tests/Commands/Make/__snapshots__/ComponentClassMakeCommandTest__test_it_generated_correct_file_with_content__1.txt @@ -10,10 +10,7 @@ class Blog extends Component /** * Create a new component instance. */ - public function __construct() - { - // - } + public function __construct() {} /** * Get the view/contents that represent the component. diff --git a/tests/Commands/Make/__snapshots__/ControllerMakeCommandTest__test_it_appends_controller_to_class_name_if_not_present__1.txt b/tests/Commands/Make/__snapshots__/ControllerMakeCommandTest__test_it_appends_controller_to_class_name_if_not_present__1.txt index ebb6e6b8c..1d82ff371 100644 --- a/tests/Commands/Make/__snapshots__/ControllerMakeCommandTest__test_it_appends_controller_to_class_name_if_not_present__1.txt +++ b/tests/Commands/Make/__snapshots__/ControllerMakeCommandTest__test_it_appends_controller_to_class_name_if_not_present__1.txt @@ -26,10 +26,7 @@ class MyController extends Controller /** * Store a newly created resource in storage. */ - public function store(Request $request) - { - // - } + public function store(Request $request) {} /** * Show the specified resource. @@ -50,16 +47,10 @@ class MyController extends Controller /** * Update the specified resource in storage. */ - public function update(Request $request, $id) - { - // - } + public function update(Request $request, $id) {} /** * Remove the specified resource from storage. */ - public function destroy($id) - { - // - } + public function destroy($id) {} } diff --git a/tests/Commands/Make/__snapshots__/ControllerMakeCommandTest__test_it_can_change_the_default_namespace__1.txt b/tests/Commands/Make/__snapshots__/ControllerMakeCommandTest__test_it_can_change_the_default_namespace__1.txt index f6ad657b7..2fa0c40b5 100644 --- a/tests/Commands/Make/__snapshots__/ControllerMakeCommandTest__test_it_can_change_the_default_namespace__1.txt +++ b/tests/Commands/Make/__snapshots__/ControllerMakeCommandTest__test_it_can_change_the_default_namespace__1.txt @@ -26,10 +26,7 @@ class MyController extends Controller /** * Store a newly created resource in storage. */ - public function store(Request $request) - { - // - } + public function store(Request $request) {} /** * Show the specified resource. @@ -50,16 +47,10 @@ class MyController extends Controller /** * Update the specified resource in storage. */ - public function update(Request $request, $id) - { - // - } + public function update(Request $request, $id) {} /** * Remove the specified resource from storage. */ - public function destroy($id) - { - // - } + public function destroy($id) {} } diff --git a/tests/Commands/Make/__snapshots__/ControllerMakeCommandTest__test_it_can_change_the_default_namespace_specific__1.txt b/tests/Commands/Make/__snapshots__/ControllerMakeCommandTest__test_it_can_change_the_default_namespace_specific__1.txt index f6ad657b7..2fa0c40b5 100644 --- a/tests/Commands/Make/__snapshots__/ControllerMakeCommandTest__test_it_can_change_the_default_namespace_specific__1.txt +++ b/tests/Commands/Make/__snapshots__/ControllerMakeCommandTest__test_it_can_change_the_default_namespace_specific__1.txt @@ -26,10 +26,7 @@ class MyController extends Controller /** * Store a newly created resource in storage. */ - public function store(Request $request) - { - // - } + public function store(Request $request) {} /** * Show the specified resource. @@ -50,16 +47,10 @@ class MyController extends Controller /** * Update the specified resource in storage. */ - public function update(Request $request, $id) - { - // - } + public function update(Request $request, $id) {} /** * Remove the specified resource from storage. */ - public function destroy($id) - { - // - } + public function destroy($id) {} } diff --git a/tests/Commands/Make/__snapshots__/ControllerMakeCommandTest__test_it_can_generate_a_controller_in_sub_namespace_with_correct_generated_file__1.txt b/tests/Commands/Make/__snapshots__/ControllerMakeCommandTest__test_it_can_generate_a_controller_in_sub_namespace_with_correct_generated_file__1.txt index 7f1d535a9..08d7ee996 100644 --- a/tests/Commands/Make/__snapshots__/ControllerMakeCommandTest__test_it_can_generate_a_controller_in_sub_namespace_with_correct_generated_file__1.txt +++ b/tests/Commands/Make/__snapshots__/ControllerMakeCommandTest__test_it_can_generate_a_controller_in_sub_namespace_with_correct_generated_file__1.txt @@ -26,10 +26,7 @@ class MyController extends Controller /** * Store a newly created resource in storage. */ - public function store(Request $request) - { - // - } + public function store(Request $request) {} /** * Show the specified resource. @@ -50,16 +47,10 @@ class MyController extends Controller /** * Update the specified resource in storage. */ - public function update(Request $request, $id) - { - // - } + public function update(Request $request, $id) {} /** * Remove the specified resource from storage. */ - public function destroy($id) - { - // - } + public function destroy($id) {} } diff --git a/tests/Commands/Make/__snapshots__/ControllerMakeCommandTest__test_it_generated_correct_file_with_content__1.txt b/tests/Commands/Make/__snapshots__/ControllerMakeCommandTest__test_it_generated_correct_file_with_content__1.txt index ebb6e6b8c..1d82ff371 100644 --- a/tests/Commands/Make/__snapshots__/ControllerMakeCommandTest__test_it_generated_correct_file_with_content__1.txt +++ b/tests/Commands/Make/__snapshots__/ControllerMakeCommandTest__test_it_generated_correct_file_with_content__1.txt @@ -26,10 +26,7 @@ class MyController extends Controller /** * Store a newly created resource in storage. */ - public function store(Request $request) - { - // - } + public function store(Request $request) {} /** * Show the specified resource. @@ -50,16 +47,10 @@ class MyController extends Controller /** * Update the specified resource in storage. */ - public function update(Request $request, $id) - { - // - } + public function update(Request $request, $id) {} /** * Remove the specified resource from storage. */ - public function destroy($id) - { - // - } + public function destroy($id) {} } diff --git a/tests/Commands/Make/__snapshots__/ControllerMakeCommandTest__test_it_generates_a_plain_controller__1.txt b/tests/Commands/Make/__snapshots__/ControllerMakeCommandTest__test_it_generates_a_plain_controller__1.txt index 05fcd88c1..595a1c6f2 100644 --- a/tests/Commands/Make/__snapshots__/ControllerMakeCommandTest__test_it_generates_a_plain_controller__1.txt +++ b/tests/Commands/Make/__snapshots__/ControllerMakeCommandTest__test_it_generates_a_plain_controller__1.txt @@ -4,6 +4,4 @@ namespace Modules\Blog\Http\Controllers; use Illuminate\Routing\Controller; -class MyController extends Controller -{ -} +class MyController extends Controller {} diff --git a/tests/Commands/Make/__snapshots__/EnumMakeCommandTest__test_it_can_generate_a_enum_in_sub_namespace_with_correct_generated_file__1.txt b/tests/Commands/Make/__snapshots__/EnumMakeCommandTest__test_it_can_generate_a_enum_in_sub_namespace_with_correct_generated_file__1.txt index c9edb0b1b..09d5479ee 100644 --- a/tests/Commands/Make/__snapshots__/EnumMakeCommandTest__test_it_can_generate_a_enum_in_sub_namespace_with_correct_generated_file__1.txt +++ b/tests/Commands/Make/__snapshots__/EnumMakeCommandTest__test_it_can_generate_a_enum_in_sub_namespace_with_correct_generated_file__1.txt @@ -2,7 +2,4 @@ namespace Modules\Blog\Enums\Api; -enum MyEnum -{ - // -} +enum MyEnum {} diff --git a/tests/Commands/Make/__snapshots__/EnumMakeCommandTest__test_it_generated_correct_file_with_content__1.txt b/tests/Commands/Make/__snapshots__/EnumMakeCommandTest__test_it_generated_correct_file_with_content__1.txt index 2e1ae17b9..a714325b3 100644 --- a/tests/Commands/Make/__snapshots__/EnumMakeCommandTest__test_it_generated_correct_file_with_content__1.txt +++ b/tests/Commands/Make/__snapshots__/EnumMakeCommandTest__test_it_generated_correct_file_with_content__1.txt @@ -2,7 +2,4 @@ namespace Modules\Blog\Enums; -enum MyEnum -{ - // -} +enum MyEnum {} diff --git a/tests/Commands/Make/__snapshots__/EventMakeCommandTest__test_it_can_change_the_default_namespace__1.txt b/tests/Commands/Make/__snapshots__/EventMakeCommandTest__test_it_can_change_the_default_namespace__1.txt index 7d9e697fe..85ef5a572 100644 --- a/tests/Commands/Make/__snapshots__/EventMakeCommandTest__test_it_can_change_the_default_namespace__1.txt +++ b/tests/Commands/Make/__snapshots__/EventMakeCommandTest__test_it_can_change_the_default_namespace__1.txt @@ -17,10 +17,7 @@ class PostWasCreated /** * Create a new event instance. */ - public function __construct() - { - // - } + public function __construct() {} /** * Get the channels the event should be broadcast on. diff --git a/tests/Commands/Make/__snapshots__/EventMakeCommandTest__test_it_can_change_the_default_namespace_specific__1.txt b/tests/Commands/Make/__snapshots__/EventMakeCommandTest__test_it_can_change_the_default_namespace_specific__1.txt index 7d9e697fe..85ef5a572 100644 --- a/tests/Commands/Make/__snapshots__/EventMakeCommandTest__test_it_can_change_the_default_namespace_specific__1.txt +++ b/tests/Commands/Make/__snapshots__/EventMakeCommandTest__test_it_can_change_the_default_namespace_specific__1.txt @@ -17,10 +17,7 @@ class PostWasCreated /** * Create a new event instance. */ - public function __construct() - { - // - } + public function __construct() {} /** * Get the channels the event should be broadcast on. diff --git a/tests/Commands/Make/__snapshots__/EventMakeCommandTest__test_it_generated_correct_file_with_content__1.txt b/tests/Commands/Make/__snapshots__/EventMakeCommandTest__test_it_generated_correct_file_with_content__1.txt index d99431e28..369cc1d45 100644 --- a/tests/Commands/Make/__snapshots__/EventMakeCommandTest__test_it_generated_correct_file_with_content__1.txt +++ b/tests/Commands/Make/__snapshots__/EventMakeCommandTest__test_it_generated_correct_file_with_content__1.txt @@ -17,10 +17,7 @@ class PostWasCreated /** * Create a new event instance. */ - public function __construct() - { - // - } + public function __construct() {} /** * Get the channels the event should be broadcast on. diff --git a/tests/Commands/Make/__snapshots__/EventProviderMakeCommandTest__test_it_generated_correct_file_with_content__1.txt b/tests/Commands/Make/__snapshots__/EventProviderMakeCommandTest__test_it_generated_correct_file_with_content__1.txt index 5f4668484..c95fe85b9 100644 --- a/tests/Commands/Make/__snapshots__/EventProviderMakeCommandTest__test_it_generated_correct_file_with_content__1.txt +++ b/tests/Commands/Make/__snapshots__/EventProviderMakeCommandTest__test_it_generated_correct_file_with_content__1.txt @@ -23,8 +23,5 @@ class EventServiceProvider extends ServiceProvider /** * Configure the proper event listeners for email verification. */ - protected function configureEmailVerification(): void - { - // - } + protected function configureEmailVerification(): void {} } diff --git a/tests/Commands/Make/__snapshots__/ExceptionMakeCommandTest__test_it_can_generate_a_exception_in_sub_namespace_with_correct_generated_file__1.txt b/tests/Commands/Make/__snapshots__/ExceptionMakeCommandTest__test_it_can_generate_a_exception_in_sub_namespace_with_correct_generated_file__1.txt index 4e24c9dc5..927be3146 100644 --- a/tests/Commands/Make/__snapshots__/ExceptionMakeCommandTest__test_it_can_generate_a_exception_in_sub_namespace_with_correct_generated_file__1.txt +++ b/tests/Commands/Make/__snapshots__/ExceptionMakeCommandTest__test_it_can_generate_a_exception_in_sub_namespace_with_correct_generated_file__1.txt @@ -4,7 +4,4 @@ namespace Modules\Blog\Exceptions\Api; use Exception; -class MyException extends Exception -{ - // -} +class MyException extends Exception {} diff --git a/tests/Commands/Make/__snapshots__/ExceptionMakeCommandTest__test_it_generated_correct_file_with_content__1.txt b/tests/Commands/Make/__snapshots__/ExceptionMakeCommandTest__test_it_generated_correct_file_with_content__1.txt index b98d68d11..5c5866a24 100644 --- a/tests/Commands/Make/__snapshots__/ExceptionMakeCommandTest__test_it_generated_correct_file_with_content__1.txt +++ b/tests/Commands/Make/__snapshots__/ExceptionMakeCommandTest__test_it_generated_correct_file_with_content__1.txt @@ -4,7 +4,4 @@ namespace Modules\Blog\Exceptions; use Exception; -class MyException extends Exception -{ - // -} +class MyException extends Exception {} diff --git a/tests/Commands/Make/__snapshots__/HelperMakeCommandTest__test_it_can_generate_a_helper_in_sub_namespace_with_correct_generated_file__1.txt b/tests/Commands/Make/__snapshots__/HelperMakeCommandTest__test_it_can_generate_a_helper_in_sub_namespace_with_correct_generated_file__1.txt index 8d0c5ce48..edcba10a3 100644 --- a/tests/Commands/Make/__snapshots__/HelperMakeCommandTest__test_it_can_generate_a_helper_in_sub_namespace_with_correct_generated_file__1.txt +++ b/tests/Commands/Make/__snapshots__/HelperMakeCommandTest__test_it_can_generate_a_helper_in_sub_namespace_with_correct_generated_file__1.txt @@ -4,8 +4,5 @@ namespace Modules\Blog\Helpers\Api; class MyHelper { - public function handle() - { - // - } + public function handle() {} } diff --git a/tests/Commands/Make/__snapshots__/HelperMakeCommandTest__test_it_generated_correct_file_with_content__1.txt b/tests/Commands/Make/__snapshots__/HelperMakeCommandTest__test_it_generated_correct_file_with_content__1.txt index aa7467618..e31f75f46 100644 --- a/tests/Commands/Make/__snapshots__/HelperMakeCommandTest__test_it_generated_correct_file_with_content__1.txt +++ b/tests/Commands/Make/__snapshots__/HelperMakeCommandTest__test_it_generated_correct_file_with_content__1.txt @@ -4,8 +4,5 @@ namespace Modules\Blog\Helpers; class MyHelper { - public function handle() - { - // - } + public function handle() {} } diff --git a/tests/Commands/Make/__snapshots__/InterfaceMakeCommandTest__test_it_can_generate_a_interface_in_sub_namespace_with_correct_generated_file__1.txt b/tests/Commands/Make/__snapshots__/InterfaceMakeCommandTest__test_it_can_generate_a_interface_in_sub_namespace_with_correct_generated_file__1.txt index e93a8194d..ec7739b2c 100644 --- a/tests/Commands/Make/__snapshots__/InterfaceMakeCommandTest__test_it_can_generate_a_interface_in_sub_namespace_with_correct_generated_file__1.txt +++ b/tests/Commands/Make/__snapshots__/InterfaceMakeCommandTest__test_it_can_generate_a_interface_in_sub_namespace_with_correct_generated_file__1.txt @@ -2,7 +2,4 @@ namespace Modules\Blog\Interfaces\Api; -interface MyInterface -{ - -} +interface MyInterface {} diff --git a/tests/Commands/Make/__snapshots__/InterfaceMakeCommandTest__test_it_generated_correct_file_with_content__1.txt b/tests/Commands/Make/__snapshots__/InterfaceMakeCommandTest__test_it_generated_correct_file_with_content__1.txt index 17ed492b2..849d57ae9 100644 --- a/tests/Commands/Make/__snapshots__/InterfaceMakeCommandTest__test_it_generated_correct_file_with_content__1.txt +++ b/tests/Commands/Make/__snapshots__/InterfaceMakeCommandTest__test_it_generated_correct_file_with_content__1.txt @@ -2,7 +2,4 @@ namespace Modules\Blog\Interfaces; -interface MyInterface -{ - -} +interface MyInterface {} diff --git a/tests/Commands/Make/__snapshots__/JobMakeCommandTest__test_it_can_change_the_default_namespace__1.txt b/tests/Commands/Make/__snapshots__/JobMakeCommandTest__test_it_can_change_the_default_namespace__1.txt index 6ae619387..f578ef454 100644 --- a/tests/Commands/Make/__snapshots__/JobMakeCommandTest__test_it_can_change_the_default_namespace__1.txt +++ b/tests/Commands/Make/__snapshots__/JobMakeCommandTest__test_it_can_change_the_default_namespace__1.txt @@ -15,16 +15,10 @@ class SomeJob implements ShouldQueue /** * Create a new job instance. */ - public function __construct() - { - // - } + public function __construct() {} /** * Execute the job. */ - public function handle(): void - { - // - } + public function handle(): void {} } diff --git a/tests/Commands/Make/__snapshots__/JobMakeCommandTest__test_it_can_change_the_default_namespace_specific__1.txt b/tests/Commands/Make/__snapshots__/JobMakeCommandTest__test_it_can_change_the_default_namespace_specific__1.txt index 6ae619387..f578ef454 100644 --- a/tests/Commands/Make/__snapshots__/JobMakeCommandTest__test_it_can_change_the_default_namespace_specific__1.txt +++ b/tests/Commands/Make/__snapshots__/JobMakeCommandTest__test_it_can_change_the_default_namespace_specific__1.txt @@ -15,16 +15,10 @@ class SomeJob implements ShouldQueue /** * Create a new job instance. */ - public function __construct() - { - // - } + public function __construct() {} /** * Execute the job. */ - public function handle(): void - { - // - } + public function handle(): void {} } diff --git a/tests/Commands/Make/__snapshots__/JobMakeCommandTest__test_it_generated_correct_file_with_content__1.txt b/tests/Commands/Make/__snapshots__/JobMakeCommandTest__test_it_generated_correct_file_with_content__1.txt index 12195d292..e6e1547a3 100644 --- a/tests/Commands/Make/__snapshots__/JobMakeCommandTest__test_it_generated_correct_file_with_content__1.txt +++ b/tests/Commands/Make/__snapshots__/JobMakeCommandTest__test_it_generated_correct_file_with_content__1.txt @@ -15,16 +15,10 @@ class SomeJob implements ShouldQueue /** * Create a new job instance. */ - public function __construct() - { - // - } + public function __construct() {} /** * Execute the job. */ - public function handle(): void - { - // - } + public function handle(): void {} } diff --git a/tests/Commands/Make/__snapshots__/JobMakeCommandTest__test_it_generated_correct_sync_job_file_with_content__1.txt b/tests/Commands/Make/__snapshots__/JobMakeCommandTest__test_it_generated_correct_sync_job_file_with_content__1.txt index 971c66f80..ab6b5e55e 100644 --- a/tests/Commands/Make/__snapshots__/JobMakeCommandTest__test_it_generated_correct_sync_job_file_with_content__1.txt +++ b/tests/Commands/Make/__snapshots__/JobMakeCommandTest__test_it_generated_correct_sync_job_file_with_content__1.txt @@ -12,16 +12,10 @@ class SomeJob implements ShouldQueue /** * Create a new job instance. */ - public function __construct() - { - // - } + public function __construct() {} /** * Execute the job. */ - public function handle(): void - { - // - } + public function handle(): void {} } diff --git a/tests/Commands/Make/__snapshots__/ListenerMakeCommandTest__test_it_can_change_the_default_namespace__1.txt b/tests/Commands/Make/__snapshots__/ListenerMakeCommandTest__test_it_can_change_the_default_namespace__1.txt index b5c7d0ad5..6a42a0bb8 100644 --- a/tests/Commands/Make/__snapshots__/ListenerMakeCommandTest__test_it_can_change_the_default_namespace__1.txt +++ b/tests/Commands/Make/__snapshots__/ListenerMakeCommandTest__test_it_can_change_the_default_namespace__1.txt @@ -10,16 +10,10 @@ class NotifyUsersOfANewPost /** * Create the event listener. */ - public function __construct() - { - // - } + public function __construct() {} /** * Handle the event. */ - public function handle($event): void - { - // - } + public function handle($event): void {} } diff --git a/tests/Commands/Make/__snapshots__/ListenerMakeCommandTest__test_it_can_change_the_default_namespace_specific__1.txt b/tests/Commands/Make/__snapshots__/ListenerMakeCommandTest__test_it_can_change_the_default_namespace_specific__1.txt index b5c7d0ad5..6a42a0bb8 100644 --- a/tests/Commands/Make/__snapshots__/ListenerMakeCommandTest__test_it_can_change_the_default_namespace_specific__1.txt +++ b/tests/Commands/Make/__snapshots__/ListenerMakeCommandTest__test_it_can_change_the_default_namespace_specific__1.txt @@ -10,16 +10,10 @@ class NotifyUsersOfANewPost /** * Create the event listener. */ - public function __construct() - { - // - } + public function __construct() {} /** * Handle the event. */ - public function handle($event): void - { - // - } + public function handle($event): void {} } diff --git a/tests/Commands/Make/__snapshots__/ListenerMakeCommandTest__test_it_generated_correct_queued_duck_event_with_content__1.txt b/tests/Commands/Make/__snapshots__/ListenerMakeCommandTest__test_it_generated_correct_queued_duck_event_with_content__1.txt index 1ee48076b..40dfa1a8e 100644 --- a/tests/Commands/Make/__snapshots__/ListenerMakeCommandTest__test_it_generated_correct_queued_duck_event_with_content__1.txt +++ b/tests/Commands/Make/__snapshots__/ListenerMakeCommandTest__test_it_generated_correct_queued_duck_event_with_content__1.txt @@ -12,16 +12,10 @@ class NotifyUsersOfANewPost implements ShouldQueue /** * Create the event listener */ - public function __construct() - { - // - } + public function __construct() {} /** * Handle the event. */ - public function handle($event): void - { - // - } + public function handle($event): void {} } diff --git a/tests/Commands/Make/__snapshots__/ListenerMakeCommandTest__test_it_generated_correct_queued_event_in_a_subdirectory_with_content__1.txt b/tests/Commands/Make/__snapshots__/ListenerMakeCommandTest__test_it_generated_correct_queued_event_in_a_subdirectory_with_content__1.txt index fecdd24d1..b759dec84 100644 --- a/tests/Commands/Make/__snapshots__/ListenerMakeCommandTest__test_it_generated_correct_queued_event_in_a_subdirectory_with_content__1.txt +++ b/tests/Commands/Make/__snapshots__/ListenerMakeCommandTest__test_it_generated_correct_queued_event_in_a_subdirectory_with_content__1.txt @@ -13,16 +13,10 @@ class NotifyUsersOfANewPost implements ShouldQueue /** * Create the event listener. */ - public function __construct() - { - // - } + public function __construct() {} /** * Handle the event. */ - public function handle(WasCreated $event): void - { - // - } + public function handle(WasCreated $event): void {} } diff --git a/tests/Commands/Make/__snapshots__/ListenerMakeCommandTest__test_it_generated_correct_queued_event_with_content__1.txt b/tests/Commands/Make/__snapshots__/ListenerMakeCommandTest__test_it_generated_correct_queued_event_with_content__1.txt index f41249b7d..061340471 100644 --- a/tests/Commands/Make/__snapshots__/ListenerMakeCommandTest__test_it_generated_correct_queued_event_with_content__1.txt +++ b/tests/Commands/Make/__snapshots__/ListenerMakeCommandTest__test_it_generated_correct_queued_event_with_content__1.txt @@ -13,16 +13,10 @@ class NotifyUsersOfANewPost implements ShouldQueue /** * Create the event listener. */ - public function __construct() - { - // - } + public function __construct() {} /** * Handle the event. */ - public function handle(UserWasCreated $event): void - { - // - } + public function handle(UserWasCreated $event): void {} } diff --git a/tests/Commands/Make/__snapshots__/ListenerMakeCommandTest__test_it_generated_correct_sync_duck_event_with_content__1.txt b/tests/Commands/Make/__snapshots__/ListenerMakeCommandTest__test_it_generated_correct_sync_duck_event_with_content__1.txt index 437cffd78..9e724d0fe 100644 --- a/tests/Commands/Make/__snapshots__/ListenerMakeCommandTest__test_it_generated_correct_sync_duck_event_with_content__1.txt +++ b/tests/Commands/Make/__snapshots__/ListenerMakeCommandTest__test_it_generated_correct_sync_duck_event_with_content__1.txt @@ -10,16 +10,10 @@ class NotifyUsersOfANewPost /** * Create the event listener. */ - public function __construct() - { - // - } + public function __construct() {} /** * Handle the event. */ - public function handle($event): void - { - // - } + public function handle($event): void {} } diff --git a/tests/Commands/Make/__snapshots__/ListenerMakeCommandTest__test_it_generated_correct_sync_event_in_a_subdirectory_with_content__1.txt b/tests/Commands/Make/__snapshots__/ListenerMakeCommandTest__test_it_generated_correct_sync_event_in_a_subdirectory_with_content__1.txt index 9087d3d76..6a2deee8a 100644 --- a/tests/Commands/Make/__snapshots__/ListenerMakeCommandTest__test_it_generated_correct_sync_event_in_a_subdirectory_with_content__1.txt +++ b/tests/Commands/Make/__snapshots__/ListenerMakeCommandTest__test_it_generated_correct_sync_event_in_a_subdirectory_with_content__1.txt @@ -11,16 +11,10 @@ class NotifyUsersOfANewPost /** * Create the event listener. */ - public function __construct() - { - // - } + public function __construct() {} /** * Handle the event. */ - public function handle(WasCreated $event): void - { - // - } + public function handle(WasCreated $event): void {} } diff --git a/tests/Commands/Make/__snapshots__/ListenerMakeCommandTest__test_it_generated_correct_sync_event_with_content__1.txt b/tests/Commands/Make/__snapshots__/ListenerMakeCommandTest__test_it_generated_correct_sync_event_with_content__1.txt index e8db4ac5a..9cbe119d7 100644 --- a/tests/Commands/Make/__snapshots__/ListenerMakeCommandTest__test_it_generated_correct_sync_event_with_content__1.txt +++ b/tests/Commands/Make/__snapshots__/ListenerMakeCommandTest__test_it_generated_correct_sync_event_with_content__1.txt @@ -11,16 +11,10 @@ class NotifyUsersOfANewPost /** * Create the event listener. */ - public function __construct() - { - // - } + public function __construct() {} /** * Handle the event. */ - public function handle(UserWasCreated $event): void - { - // - } + public function handle(UserWasCreated $event): void {} } diff --git a/tests/Commands/Make/__snapshots__/MailMakeCommandTest__test_it_can_change_the_default_namespace__1.txt b/tests/Commands/Make/__snapshots__/MailMakeCommandTest__test_it_can_change_the_default_namespace__1.txt index 45f802ffe..ee450db31 100644 --- a/tests/Commands/Make/__snapshots__/MailMakeCommandTest__test_it_can_change_the_default_namespace__1.txt +++ b/tests/Commands/Make/__snapshots__/MailMakeCommandTest__test_it_can_change_the_default_namespace__1.txt @@ -14,10 +14,7 @@ class SomeMail extends Mailable /** * Create a new message instance. */ - public function __construct() - { - // - } + public function __construct() {} /** * Build the message. diff --git a/tests/Commands/Make/__snapshots__/MailMakeCommandTest__test_it_can_change_the_default_namespace_specific__1.txt b/tests/Commands/Make/__snapshots__/MailMakeCommandTest__test_it_can_change_the_default_namespace_specific__1.txt index 45f802ffe..ee450db31 100644 --- a/tests/Commands/Make/__snapshots__/MailMakeCommandTest__test_it_can_change_the_default_namespace_specific__1.txt +++ b/tests/Commands/Make/__snapshots__/MailMakeCommandTest__test_it_can_change_the_default_namespace_specific__1.txt @@ -14,10 +14,7 @@ class SomeMail extends Mailable /** * Create a new message instance. */ - public function __construct() - { - // - } + public function __construct() {} /** * Build the message. diff --git a/tests/Commands/Make/__snapshots__/MailMakeCommandTest__test_it_generated_correct_file_with_content__1.txt b/tests/Commands/Make/__snapshots__/MailMakeCommandTest__test_it_generated_correct_file_with_content__1.txt index 5bee369ee..56c9a9606 100644 --- a/tests/Commands/Make/__snapshots__/MailMakeCommandTest__test_it_generated_correct_file_with_content__1.txt +++ b/tests/Commands/Make/__snapshots__/MailMakeCommandTest__test_it_generated_correct_file_with_content__1.txt @@ -14,10 +14,7 @@ class SomeMail extends Mailable /** * Create a new message instance. */ - public function __construct() - { - // - } + public function __construct() {} /** * Build the message. diff --git a/tests/Commands/Make/__snapshots__/MigrationMakeCommandTest__test_it_generates_correct_default_migration_file_content__1.txt b/tests/Commands/Make/__snapshots__/MigrationMakeCommandTest__test_it_generates_correct_default_migration_file_content__1.txt index 88fa2f36b..d94404c41 100644 --- a/tests/Commands/Make/__snapshots__/MigrationMakeCommandTest__test_it_generates_correct_default_migration_file_content__1.txt +++ b/tests/Commands/Make/__snapshots__/MigrationMakeCommandTest__test_it_generates_correct_default_migration_file_content__1.txt @@ -9,16 +9,10 @@ return new class extends Migration /** * Run the migrations. */ - public function up(): void - { - // - } + public function up(): void {} /** * Reverse the migrations. */ - public function down(): void - { - // - } + public function down(): void {} }; diff --git a/tests/Commands/Make/__snapshots__/ModelMakeCommandTest__test_it_generates_controller_and_migration_when_both_flags_are_present__1.txt b/tests/Commands/Make/__snapshots__/ModelMakeCommandTest__test_it_generates_controller_and_migration_when_both_flags_are_present__1.txt index 3a09e23cb..b4c9a7b6c 100644 --- a/tests/Commands/Make/__snapshots__/ModelMakeCommandTest__test_it_generates_controller_and_migration_when_both_flags_are_present__1.txt +++ b/tests/Commands/Make/__snapshots__/ModelMakeCommandTest__test_it_generates_controller_and_migration_when_both_flags_are_present__1.txt @@ -26,10 +26,7 @@ class PostController extends Controller /** * Store a newly created resource in storage. */ - public function store(Request $request) - { - // - } + public function store(Request $request) {} /** * Show the specified resource. @@ -50,16 +47,10 @@ class PostController extends Controller /** * Update the specified resource in storage. */ - public function update(Request $request, $id) - { - // - } + public function update(Request $request, $id) {} /** * Remove the specified resource from storage. */ - public function destroy($id) - { - // - } + public function destroy($id) {} } diff --git a/tests/Commands/Make/__snapshots__/ModelMakeCommandTest__test_it_generates_controller_file_with_model__1.txt b/tests/Commands/Make/__snapshots__/ModelMakeCommandTest__test_it_generates_controller_file_with_model__1.txt index 3a09e23cb..b4c9a7b6c 100644 --- a/tests/Commands/Make/__snapshots__/ModelMakeCommandTest__test_it_generates_controller_file_with_model__1.txt +++ b/tests/Commands/Make/__snapshots__/ModelMakeCommandTest__test_it_generates_controller_file_with_model__1.txt @@ -26,10 +26,7 @@ class PostController extends Controller /** * Store a newly created resource in storage. */ - public function store(Request $request) - { - // - } + public function store(Request $request) {} /** * Show the specified resource. @@ -50,16 +47,10 @@ class PostController extends Controller /** * Update the specified resource in storage. */ - public function update(Request $request, $id) - { - // - } + public function update(Request $request, $id) {} /** * Remove the specified resource from storage. */ - public function destroy($id) - { - // - } + public function destroy($id) {} } diff --git a/tests/Commands/Make/__snapshots__/ModelMakeCommandTest__test_it_generates_controller_file_with_model_using_shortcut_option__1.txt b/tests/Commands/Make/__snapshots__/ModelMakeCommandTest__test_it_generates_controller_file_with_model_using_shortcut_option__1.txt index 3a09e23cb..b4c9a7b6c 100644 --- a/tests/Commands/Make/__snapshots__/ModelMakeCommandTest__test_it_generates_controller_file_with_model_using_shortcut_option__1.txt +++ b/tests/Commands/Make/__snapshots__/ModelMakeCommandTest__test_it_generates_controller_file_with_model_using_shortcut_option__1.txt @@ -26,10 +26,7 @@ class PostController extends Controller /** * Store a newly created resource in storage. */ - public function store(Request $request) - { - // - } + public function store(Request $request) {} /** * Show the specified resource. @@ -50,16 +47,10 @@ class PostController extends Controller /** * Update the specified resource in storage. */ - public function update(Request $request, $id) - { - // - } + public function update(Request $request, $id) {} /** * Remove the specified resource from storage. */ - public function destroy($id) - { - // - } + public function destroy($id) {} } diff --git a/tests/Commands/Make/__snapshots__/ModuleMakeCommandTest__test_it_generate_module_when_provider_is_enable_and_route_provider_is_enable__2.txt b/tests/Commands/Make/__snapshots__/ModuleMakeCommandTest__test_it_generate_module_when_provider_is_enable_and_route_provider_is_enable__2.txt index 650b28386..99e2a52a4 100644 --- a/tests/Commands/Make/__snapshots__/ModuleMakeCommandTest__test_it_generate_module_when_provider_is_enable_and_route_provider_is_enable__2.txt +++ b/tests/Commands/Make/__snapshots__/ModuleMakeCommandTest__test_it_generate_module_when_provider_is_enable_and_route_provider_is_enable__2.txt @@ -2,8 +2,8 @@ namespace Modules\Blog\Providers; -use Illuminate\Support\Facades\Route; use Illuminate\Foundation\Support\Providers\RouteServiceProvider as ServiceProvider; +use Illuminate\Support\Facades\Route; class RouteServiceProvider extends ServiceProvider { diff --git a/tests/Commands/Make/__snapshots__/ModuleMakeCommandTest__test_it_generates_api_module_with_resources__4.txt b/tests/Commands/Make/__snapshots__/ModuleMakeCommandTest__test_it_generates_api_module_with_resources__4.txt index 650b28386..99e2a52a4 100644 --- a/tests/Commands/Make/__snapshots__/ModuleMakeCommandTest__test_it_generates_api_module_with_resources__4.txt +++ b/tests/Commands/Make/__snapshots__/ModuleMakeCommandTest__test_it_generates_api_module_with_resources__4.txt @@ -2,8 +2,8 @@ namespace Modules\Blog\Providers; -use Illuminate\Support\Facades\Route; use Illuminate\Foundation\Support\Providers\RouteServiceProvider as ServiceProvider; +use Illuminate\Support\Facades\Route; class RouteServiceProvider extends ServiceProvider { diff --git a/tests/Commands/Make/__snapshots__/ModuleMakeCommandTest__test_it_generates_api_route_file__1.txt b/tests/Commands/Make/__snapshots__/ModuleMakeCommandTest__test_it_generates_api_route_file__1.txt index cbdf7602e..2656f6fad 100644 --- a/tests/Commands/Make/__snapshots__/ModuleMakeCommandTest__test_it_generates_api_route_file__1.txt +++ b/tests/Commands/Make/__snapshots__/ModuleMakeCommandTest__test_it_generates_api_route_file__1.txt @@ -3,17 +3,6 @@ use Illuminate\Support\Facades\Route; use Modules\Blog\Http\Controllers\BlogController; -/* - *-------------------------------------------------------------------------- - * API Routes - *-------------------------------------------------------------------------- - * - * Here is where you can register API routes for your application. These - * routes are loaded by the RouteServiceProvider within a group which - * is assigned the "api" middleware group. Enjoy building your API! - * -*/ - Route::middleware(['auth:sanctum'])->prefix('v1')->group(function () { Route::apiResource('blog', BlogController::class)->names('blog'); }); diff --git a/tests/Commands/Make/__snapshots__/ModuleMakeCommandTest__test_it_generates_api_route_file_with_multi_segment_default_namespace__1.txt b/tests/Commands/Make/__snapshots__/ModuleMakeCommandTest__test_it_generates_api_route_file_with_multi_segment_default_namespace__1.txt index f063f6cb7..48de630b4 100644 --- a/tests/Commands/Make/__snapshots__/ModuleMakeCommandTest__test_it_generates_api_route_file_with_multi_segment_default_namespace__1.txt +++ b/tests/Commands/Make/__snapshots__/ModuleMakeCommandTest__test_it_generates_api_route_file_with_multi_segment_default_namespace__1.txt @@ -3,17 +3,6 @@ use Illuminate\Support\Facades\Route; use Custom\Modules\Blog\Http\Controllers\BlogController; -/* - *-------------------------------------------------------------------------- - * API Routes - *-------------------------------------------------------------------------- - * - * Here is where you can register API routes for your application. These - * routes are loaded by the RouteServiceProvider within a group which - * is assigned the "api" middleware group. Enjoy building your API! - * -*/ - Route::middleware(['auth:sanctum'])->prefix('v1')->group(function () { Route::apiResource('blog', BlogController::class)->names('blog'); }); diff --git a/tests/Commands/Make/__snapshots__/ModuleMakeCommandTest__test_it_generates_module_resources__2.txt b/tests/Commands/Make/__snapshots__/ModuleMakeCommandTest__test_it_generates_module_resources__2.txt index 5f4668484..c95fe85b9 100644 --- a/tests/Commands/Make/__snapshots__/ModuleMakeCommandTest__test_it_generates_module_resources__2.txt +++ b/tests/Commands/Make/__snapshots__/ModuleMakeCommandTest__test_it_generates_module_resources__2.txt @@ -23,8 +23,5 @@ class EventServiceProvider extends ServiceProvider /** * Configure the proper event listeners for email verification. */ - protected function configureEmailVerification(): void - { - // - } + protected function configureEmailVerification(): void {} } diff --git a/tests/Commands/Make/__snapshots__/ModuleMakeCommandTest__test_it_generates_module_resources__3.txt b/tests/Commands/Make/__snapshots__/ModuleMakeCommandTest__test_it_generates_module_resources__3.txt index 650b28386..99e2a52a4 100644 --- a/tests/Commands/Make/__snapshots__/ModuleMakeCommandTest__test_it_generates_module_resources__3.txt +++ b/tests/Commands/Make/__snapshots__/ModuleMakeCommandTest__test_it_generates_module_resources__3.txt @@ -2,8 +2,8 @@ namespace Modules\Blog\Providers; -use Illuminate\Support\Facades\Route; use Illuminate\Foundation\Support\Providers\RouteServiceProvider as ServiceProvider; +use Illuminate\Support\Facades\Route; class RouteServiceProvider extends ServiceProvider { diff --git a/tests/Commands/Make/__snapshots__/ModuleMakeCommandTest__test_it_generates_module_resources__4.txt b/tests/Commands/Make/__snapshots__/ModuleMakeCommandTest__test_it_generates_module_resources__4.txt index 21acf68c4..7badeb0e4 100644 --- a/tests/Commands/Make/__snapshots__/ModuleMakeCommandTest__test_it_generates_module_resources__4.txt +++ b/tests/Commands/Make/__snapshots__/ModuleMakeCommandTest__test_it_generates_module_resources__4.txt @@ -26,10 +26,7 @@ class BlogController extends Controller /** * Store a newly created resource in storage. */ - public function store(Request $request) - { - // - } + public function store(Request $request) {} /** * Show the specified resource. @@ -50,16 +47,10 @@ class BlogController extends Controller /** * Update the specified resource in storage. */ - public function update(Request $request, $id) - { - // - } + public function update(Request $request, $id) {} /** * Remove the specified resource from storage. */ - public function destroy($id) - { - // - } + public function destroy($id) {} } diff --git a/tests/Commands/Make/__snapshots__/ModuleMakeCommandTest__test_it_generates_web_module_with_resources__2.txt b/tests/Commands/Make/__snapshots__/ModuleMakeCommandTest__test_it_generates_web_module_with_resources__2.txt index 21acf68c4..7badeb0e4 100644 --- a/tests/Commands/Make/__snapshots__/ModuleMakeCommandTest__test_it_generates_web_module_with_resources__2.txt +++ b/tests/Commands/Make/__snapshots__/ModuleMakeCommandTest__test_it_generates_web_module_with_resources__2.txt @@ -26,10 +26,7 @@ class BlogController extends Controller /** * Store a newly created resource in storage. */ - public function store(Request $request) - { - // - } + public function store(Request $request) {} /** * Show the specified resource. @@ -50,16 +47,10 @@ class BlogController extends Controller /** * Update the specified resource in storage. */ - public function update(Request $request, $id) - { - // - } + public function update(Request $request, $id) {} /** * Remove the specified resource from storage. */ - public function destroy($id) - { - // - } + public function destroy($id) {} } diff --git a/tests/Commands/Make/__snapshots__/ModuleMakeCommandTest__test_it_generates_web_module_with_resources__4.txt b/tests/Commands/Make/__snapshots__/ModuleMakeCommandTest__test_it_generates_web_module_with_resources__4.txt index 650b28386..99e2a52a4 100644 --- a/tests/Commands/Make/__snapshots__/ModuleMakeCommandTest__test_it_generates_web_module_with_resources__4.txt +++ b/tests/Commands/Make/__snapshots__/ModuleMakeCommandTest__test_it_generates_web_module_with_resources__4.txt @@ -2,8 +2,8 @@ namespace Modules\Blog\Providers; -use Illuminate\Support\Facades\Route; use Illuminate\Foundation\Support\Providers\RouteServiceProvider as ServiceProvider; +use Illuminate\Support\Facades\Route; class RouteServiceProvider extends ServiceProvider { diff --git a/tests/Commands/Make/__snapshots__/ModuleMakeCommandTest__test_it_generates_web_module_with_resources_when_adding_more_than_one_option__2.txt b/tests/Commands/Make/__snapshots__/ModuleMakeCommandTest__test_it_generates_web_module_with_resources_when_adding_more_than_one_option__2.txt index 21acf68c4..7badeb0e4 100644 --- a/tests/Commands/Make/__snapshots__/ModuleMakeCommandTest__test_it_generates_web_module_with_resources_when_adding_more_than_one_option__2.txt +++ b/tests/Commands/Make/__snapshots__/ModuleMakeCommandTest__test_it_generates_web_module_with_resources_when_adding_more_than_one_option__2.txt @@ -26,10 +26,7 @@ class BlogController extends Controller /** * Store a newly created resource in storage. */ - public function store(Request $request) - { - // - } + public function store(Request $request) {} /** * Show the specified resource. @@ -50,16 +47,10 @@ class BlogController extends Controller /** * Update the specified resource in storage. */ - public function update(Request $request, $id) - { - // - } + public function update(Request $request, $id) {} /** * Remove the specified resource from storage. */ - public function destroy($id) - { - // - } + public function destroy($id) {} } diff --git a/tests/Commands/Make/__snapshots__/ModuleMakeCommandTest__test_it_generates_web_module_with_resources_when_adding_more_than_one_option__4.txt b/tests/Commands/Make/__snapshots__/ModuleMakeCommandTest__test_it_generates_web_module_with_resources_when_adding_more_than_one_option__4.txt index 650b28386..99e2a52a4 100644 --- a/tests/Commands/Make/__snapshots__/ModuleMakeCommandTest__test_it_generates_web_module_with_resources_when_adding_more_than_one_option__4.txt +++ b/tests/Commands/Make/__snapshots__/ModuleMakeCommandTest__test_it_generates_web_module_with_resources_when_adding_more_than_one_option__4.txt @@ -2,8 +2,8 @@ namespace Modules\Blog\Providers; -use Illuminate\Support\Facades\Route; use Illuminate\Foundation\Support\Providers\RouteServiceProvider as ServiceProvider; +use Illuminate\Support\Facades\Route; class RouteServiceProvider extends ServiceProvider { diff --git a/tests/Commands/Make/__snapshots__/ModuleMakeCommandTest__test_it_generates_web_route_file__1.txt b/tests/Commands/Make/__snapshots__/ModuleMakeCommandTest__test_it_generates_web_route_file__1.txt index 082efd6d4..41c4f8cd1 100644 --- a/tests/Commands/Make/__snapshots__/ModuleMakeCommandTest__test_it_generates_web_route_file__1.txt +++ b/tests/Commands/Make/__snapshots__/ModuleMakeCommandTest__test_it_generates_web_route_file__1.txt @@ -3,17 +3,6 @@ use Illuminate\Support\Facades\Route; use Modules\Blog\Http\Controllers\BlogController; -/* -|-------------------------------------------------------------------------- -| Web Routes -|-------------------------------------------------------------------------- -| -| Here is where you can register web routes for your application. These -| routes are loaded by the RouteServiceProvider within a group which -| contains the "web" middleware group. Now create something great! -| -*/ - -Route::group([], function () { +Route::middleware(['auth', 'verified'])->group(function () { Route::resource('blog', BlogController::class)->names('blog'); }); diff --git a/tests/Commands/Make/__snapshots__/ModuleMakeCommandTest__test_it_generates_web_route_file_with_multi_segment_default_namespace__1.txt b/tests/Commands/Make/__snapshots__/ModuleMakeCommandTest__test_it_generates_web_route_file_with_multi_segment_default_namespace__1.txt index ee8df69cd..6bca98189 100644 --- a/tests/Commands/Make/__snapshots__/ModuleMakeCommandTest__test_it_generates_web_route_file_with_multi_segment_default_namespace__1.txt +++ b/tests/Commands/Make/__snapshots__/ModuleMakeCommandTest__test_it_generates_web_route_file_with_multi_segment_default_namespace__1.txt @@ -3,17 +3,6 @@ use Illuminate\Support\Facades\Route; use Custom\Modules\Blog\Http\Controllers\BlogController; -/* -|-------------------------------------------------------------------------- -| Web Routes -|-------------------------------------------------------------------------- -| -| Here is where you can register web routes for your application. These -| routes are loaded by the RouteServiceProvider within a group which -| contains the "web" middleware group. Now create something great! -| -*/ - -Route::group([], function () { +Route::middleware(['auth', 'verified'])->group(function () { Route::resource('blog', BlogController::class)->names('blog'); }); diff --git a/tests/Commands/Make/__snapshots__/NotificationMakeCommandTest__test_it_can_change_the_default_namespace__1.txt b/tests/Commands/Make/__snapshots__/NotificationMakeCommandTest__test_it_can_change_the_default_namespace__1.txt index 4fb9ff311..d32033810 100644 --- a/tests/Commands/Make/__snapshots__/NotificationMakeCommandTest__test_it_can_change_the_default_namespace__1.txt +++ b/tests/Commands/Make/__snapshots__/NotificationMakeCommandTest__test_it_can_change_the_default_namespace__1.txt @@ -14,10 +14,7 @@ class WelcomeNotification extends Notification /** * Create a new notification instance. */ - public function __construct() - { - // - } + public function __construct() {} /** * Get the notification's delivery channels. diff --git a/tests/Commands/Make/__snapshots__/NotificationMakeCommandTest__test_it_can_change_the_default_namespace_specific__1.txt b/tests/Commands/Make/__snapshots__/NotificationMakeCommandTest__test_it_can_change_the_default_namespace_specific__1.txt index 4fb9ff311..d32033810 100644 --- a/tests/Commands/Make/__snapshots__/NotificationMakeCommandTest__test_it_can_change_the_default_namespace_specific__1.txt +++ b/tests/Commands/Make/__snapshots__/NotificationMakeCommandTest__test_it_can_change_the_default_namespace_specific__1.txt @@ -14,10 +14,7 @@ class WelcomeNotification extends Notification /** * Create a new notification instance. */ - public function __construct() - { - // - } + public function __construct() {} /** * Get the notification's delivery channels. diff --git a/tests/Commands/Make/__snapshots__/NotificationMakeCommandTest__test_it_generated_correct_file_with_content__1.txt b/tests/Commands/Make/__snapshots__/NotificationMakeCommandTest__test_it_generated_correct_file_with_content__1.txt index 53e7ab765..34c69d767 100644 --- a/tests/Commands/Make/__snapshots__/NotificationMakeCommandTest__test_it_generated_correct_file_with_content__1.txt +++ b/tests/Commands/Make/__snapshots__/NotificationMakeCommandTest__test_it_generated_correct_file_with_content__1.txt @@ -14,10 +14,7 @@ class WelcomeNotification extends Notification /** * Create a new notification instance. */ - public function __construct() - { - // - } + public function __construct() {} /** * Get the notification's delivery channels. diff --git a/tests/Commands/Make/__snapshots__/ObserverMakeCommandTest__test_it_makes_observer__1.txt b/tests/Commands/Make/__snapshots__/ObserverMakeCommandTest__test_it_makes_observer__1.txt index f2b38c90d..cc0947216 100644 --- a/tests/Commands/Make/__snapshots__/ObserverMakeCommandTest__test_it_makes_observer__1.txt +++ b/tests/Commands/Make/__snapshots__/ObserverMakeCommandTest__test_it_makes_observer__1.txt @@ -9,40 +9,25 @@ class PostObserver /** * Handle the Post "created" event. */ - public function created(Post $post): void - { - // - } + public function created(Post $post): void {} /** * Handle the Post "updated" event. */ - public function updated(Post $post): void - { - // - } + public function updated(Post $post): void {} /** * Handle the Post "deleted" event. */ - public function deleted(Post $post): void - { - // - } + public function deleted(Post $post): void {} /** * Handle the Post "restored" event. */ - public function restored(Post $post): void - { - // - } + public function restored(Post $post): void {} /** * Handle the Post "force deleted" event. */ - public function forceDeleted(Post $post): void - { - // - } + public function forceDeleted(Post $post): void {} } diff --git a/tests/Commands/Make/__snapshots__/PolicyMakeCommandTest__test_it_can_change_the_default_namespace__1.txt b/tests/Commands/Make/__snapshots__/PolicyMakeCommandTest__test_it_can_change_the_default_namespace__1.txt index 2b95d0318..44e25fff1 100644 --- a/tests/Commands/Make/__snapshots__/PolicyMakeCommandTest__test_it_can_change_the_default_namespace__1.txt +++ b/tests/Commands/Make/__snapshots__/PolicyMakeCommandTest__test_it_can_change_the_default_namespace__1.txt @@ -11,8 +11,5 @@ class PostPolicy /** * Create a new policy instance. */ - public function __construct() - { - // - } + public function __construct() {} } diff --git a/tests/Commands/Make/__snapshots__/PolicyMakeCommandTest__test_it_can_change_the_default_namespace_specific__1.txt b/tests/Commands/Make/__snapshots__/PolicyMakeCommandTest__test_it_can_change_the_default_namespace_specific__1.txt index 2b95d0318..44e25fff1 100644 --- a/tests/Commands/Make/__snapshots__/PolicyMakeCommandTest__test_it_can_change_the_default_namespace_specific__1.txt +++ b/tests/Commands/Make/__snapshots__/PolicyMakeCommandTest__test_it_can_change_the_default_namespace_specific__1.txt @@ -11,8 +11,5 @@ class PostPolicy /** * Create a new policy instance. */ - public function __construct() - { - // - } + public function __construct() {} } diff --git a/tests/Commands/Make/__snapshots__/PolicyMakeCommandTest__test_it_makes_policy__1.txt b/tests/Commands/Make/__snapshots__/PolicyMakeCommandTest__test_it_makes_policy__1.txt index ae70c6af2..0b99c3558 100644 --- a/tests/Commands/Make/__snapshots__/PolicyMakeCommandTest__test_it_makes_policy__1.txt +++ b/tests/Commands/Make/__snapshots__/PolicyMakeCommandTest__test_it_makes_policy__1.txt @@ -11,8 +11,5 @@ class PostPolicy /** * Create a new policy instance. */ - public function __construct() - { - // - } + public function __construct() {} } diff --git a/tests/Commands/Make/__snapshots__/ProviderMakeCommandTest__test_it_generated_correct_file_with_content__1.txt b/tests/Commands/Make/__snapshots__/ProviderMakeCommandTest__test_it_generated_correct_file_with_content__1.txt index 922456f3d..7680caab8 100644 --- a/tests/Commands/Make/__snapshots__/ProviderMakeCommandTest__test_it_generated_correct_file_with_content__1.txt +++ b/tests/Commands/Make/__snapshots__/ProviderMakeCommandTest__test_it_generated_correct_file_with_content__1.txt @@ -9,10 +9,7 @@ class MyBlogServiceProvider extends ServiceProvider /** * Register the service provider. */ - public function register(): void - { - // - } + public function register(): void {} /** * Get the services provided by the provider. diff --git a/tests/Commands/Make/__snapshots__/RepositoryMakeCommandTest__test_it_can_generate_a_repository_in_sub_namespace_with_correct_generated_file__1.txt b/tests/Commands/Make/__snapshots__/RepositoryMakeCommandTest__test_it_can_generate_a_repository_in_sub_namespace_with_correct_generated_file__1.txt index 6ddffc7b9..60acadc28 100644 --- a/tests/Commands/Make/__snapshots__/RepositoryMakeCommandTest__test_it_can_generate_a_repository_in_sub_namespace_with_correct_generated_file__1.txt +++ b/tests/Commands/Make/__snapshots__/RepositoryMakeCommandTest__test_it_can_generate_a_repository_in_sub_namespace_with_correct_generated_file__1.txt @@ -4,8 +4,5 @@ namespace Modules\Blog\Repositories\Api; class MyRepository { - public function handle() - { - // - } + public function handle() {} } diff --git a/tests/Commands/Make/__snapshots__/RepositoryMakeCommandTest__test_it_generated_correct_file_with_content__1.txt b/tests/Commands/Make/__snapshots__/RepositoryMakeCommandTest__test_it_generated_correct_file_with_content__1.txt index b691473b4..40a22908f 100644 --- a/tests/Commands/Make/__snapshots__/RepositoryMakeCommandTest__test_it_generated_correct_file_with_content__1.txt +++ b/tests/Commands/Make/__snapshots__/RepositoryMakeCommandTest__test_it_generated_correct_file_with_content__1.txt @@ -4,8 +4,5 @@ namespace Modules\Blog\Repositories; class MyRepository { - public function handle() - { - // - } + public function handle() {} } diff --git a/tests/Commands/Make/__snapshots__/RequestMakeCommandTest__test_it_can_change_the_default_namespace__1.txt b/tests/Commands/Make/__snapshots__/RequestMakeCommandTest__test_it_can_change_the_default_namespace__1.txt index f217f1ecf..07999ecdc 100644 --- a/tests/Commands/Make/__snapshots__/RequestMakeCommandTest__test_it_can_change_the_default_namespace__1.txt +++ b/tests/Commands/Make/__snapshots__/RequestMakeCommandTest__test_it_can_change_the_default_namespace__1.txt @@ -11,9 +11,7 @@ class CreateBlogPostRequest extends FormRequest */ public function rules(): array { - return [ - // - ]; + return []; } /** diff --git a/tests/Commands/Make/__snapshots__/RequestMakeCommandTest__test_it_can_change_the_default_namespace_specific__1.txt b/tests/Commands/Make/__snapshots__/RequestMakeCommandTest__test_it_can_change_the_default_namespace_specific__1.txt index f217f1ecf..07999ecdc 100644 --- a/tests/Commands/Make/__snapshots__/RequestMakeCommandTest__test_it_can_change_the_default_namespace_specific__1.txt +++ b/tests/Commands/Make/__snapshots__/RequestMakeCommandTest__test_it_can_change_the_default_namespace_specific__1.txt @@ -11,9 +11,7 @@ class CreateBlogPostRequest extends FormRequest */ public function rules(): array { - return [ - // - ]; + return []; } /** diff --git a/tests/Commands/Make/__snapshots__/RequestMakeCommandTest__test_it_generated_correct_file_with_content__1.txt b/tests/Commands/Make/__snapshots__/RequestMakeCommandTest__test_it_generated_correct_file_with_content__1.txt index e4829d542..b850b2e72 100644 --- a/tests/Commands/Make/__snapshots__/RequestMakeCommandTest__test_it_generated_correct_file_with_content__1.txt +++ b/tests/Commands/Make/__snapshots__/RequestMakeCommandTest__test_it_generated_correct_file_with_content__1.txt @@ -11,9 +11,7 @@ class CreateBlogPostRequest extends FormRequest */ public function rules(): array { - return [ - // - ]; + return []; } /** diff --git a/tests/Commands/Make/__snapshots__/RouteProviderMakeCommandTest__test_it_can_change_the_custom_controller_namespace__1.txt b/tests/Commands/Make/__snapshots__/RouteProviderMakeCommandTest__test_it_can_change_the_custom_controller_namespace__1.txt index 8d3b18fc2..c1f8cb1f3 100644 --- a/tests/Commands/Make/__snapshots__/RouteProviderMakeCommandTest__test_it_can_change_the_custom_controller_namespace__1.txt +++ b/tests/Commands/Make/__snapshots__/RouteProviderMakeCommandTest__test_it_can_change_the_custom_controller_namespace__1.txt @@ -2,8 +2,8 @@ namespace Modules\Blog\Base\Providers; -use Illuminate\Support\Facades\Route; use Illuminate\Foundation\Support\Providers\RouteServiceProvider as ServiceProvider; +use Illuminate\Support\Facades\Route; class RouteServiceProvider extends ServiceProvider { diff --git a/tests/Commands/Make/__snapshots__/RouteProviderMakeCommandTest__test_it_can_change_the_default_namespace__1.txt b/tests/Commands/Make/__snapshots__/RouteProviderMakeCommandTest__test_it_can_change_the_default_namespace__1.txt index 43a25d37e..e9527aefb 100644 --- a/tests/Commands/Make/__snapshots__/RouteProviderMakeCommandTest__test_it_can_change_the_default_namespace__1.txt +++ b/tests/Commands/Make/__snapshots__/RouteProviderMakeCommandTest__test_it_can_change_the_default_namespace__1.txt @@ -2,8 +2,8 @@ namespace Modules\Blog\SuperProviders; -use Illuminate\Support\Facades\Route; use Illuminate\Foundation\Support\Providers\RouteServiceProvider as ServiceProvider; +use Illuminate\Support\Facades\Route; class RouteServiceProvider extends ServiceProvider { diff --git a/tests/Commands/Make/__snapshots__/RouteProviderMakeCommandTest__test_it_can_change_the_default_namespace_specific__1.txt b/tests/Commands/Make/__snapshots__/RouteProviderMakeCommandTest__test_it_can_change_the_default_namespace_specific__1.txt index 43a25d37e..e9527aefb 100644 --- a/tests/Commands/Make/__snapshots__/RouteProviderMakeCommandTest__test_it_can_change_the_default_namespace_specific__1.txt +++ b/tests/Commands/Make/__snapshots__/RouteProviderMakeCommandTest__test_it_can_change_the_default_namespace_specific__1.txt @@ -2,8 +2,8 @@ namespace Modules\Blog\SuperProviders; -use Illuminate\Support\Facades\Route; use Illuminate\Foundation\Support\Providers\RouteServiceProvider as ServiceProvider; +use Illuminate\Support\Facades\Route; class RouteServiceProvider extends ServiceProvider { diff --git a/tests/Commands/Make/__snapshots__/RouteProviderMakeCommandTest__test_it_can_overwrite_file__1.txt b/tests/Commands/Make/__snapshots__/RouteProviderMakeCommandTest__test_it_can_overwrite_file__1.txt index 9b80aa3d4..24e3ae646 100644 --- a/tests/Commands/Make/__snapshots__/RouteProviderMakeCommandTest__test_it_can_overwrite_file__1.txt +++ b/tests/Commands/Make/__snapshots__/RouteProviderMakeCommandTest__test_it_can_overwrite_file__1.txt @@ -2,8 +2,8 @@ namespace Modules\Blog\Providers; -use Illuminate\Support\Facades\Route; use Illuminate\Foundation\Support\Providers\RouteServiceProvider as ServiceProvider; +use Illuminate\Support\Facades\Route; class RouteServiceProvider extends ServiceProvider { diff --git a/tests/Commands/Make/__snapshots__/RouteProviderMakeCommandTest__test_it_can_overwrite_route_file_names__1.txt b/tests/Commands/Make/__snapshots__/RouteProviderMakeCommandTest__test_it_can_overwrite_route_file_names__1.txt index fe4cb9a89..ebb57f333 100644 --- a/tests/Commands/Make/__snapshots__/RouteProviderMakeCommandTest__test_it_can_overwrite_route_file_names__1.txt +++ b/tests/Commands/Make/__snapshots__/RouteProviderMakeCommandTest__test_it_can_overwrite_route_file_names__1.txt @@ -2,8 +2,8 @@ namespace Modules\Blog\Providers; -use Illuminate\Support\Facades\Route; use Illuminate\Foundation\Support\Providers\RouteServiceProvider as ServiceProvider; +use Illuminate\Support\Facades\Route; class RouteServiceProvider extends ServiceProvider { diff --git a/tests/Commands/Make/__snapshots__/RouteProviderMakeCommandTest__test_it_generated_correct_file_with_content__1.txt b/tests/Commands/Make/__snapshots__/RouteProviderMakeCommandTest__test_it_generated_correct_file_with_content__1.txt index 650b28386..99e2a52a4 100644 --- a/tests/Commands/Make/__snapshots__/RouteProviderMakeCommandTest__test_it_generated_correct_file_with_content__1.txt +++ b/tests/Commands/Make/__snapshots__/RouteProviderMakeCommandTest__test_it_generated_correct_file_with_content__1.txt @@ -2,8 +2,8 @@ namespace Modules\Blog\Providers; -use Illuminate\Support\Facades\Route; use Illuminate\Foundation\Support\Providers\RouteServiceProvider as ServiceProvider; +use Illuminate\Support\Facades\Route; class RouteServiceProvider extends ServiceProvider { diff --git a/tests/Commands/Make/__snapshots__/RuleMakeCommandTest__test_it_can_change_the_default_namespace__1.txt b/tests/Commands/Make/__snapshots__/RuleMakeCommandTest__test_it_can_change_the_default_namespace__1.txt index 23757e05f..179c1466c 100644 --- a/tests/Commands/Make/__snapshots__/RuleMakeCommandTest__test_it_can_change_the_default_namespace__1.txt +++ b/tests/Commands/Make/__snapshots__/RuleMakeCommandTest__test_it_can_change_the_default_namespace__1.txt @@ -10,8 +10,5 @@ class UniqueRule implements ValidationRule /** * Run the validation rule. */ - public function validate(string $attribute, mixed $value, Closure $fail): void - { - // - } + public function validate(string $attribute, mixed $value, Closure $fail): void {} } diff --git a/tests/Commands/Make/__snapshots__/RuleMakeCommandTest__test_it_can_change_the_default_namespace_specific__1.txt b/tests/Commands/Make/__snapshots__/RuleMakeCommandTest__test_it_can_change_the_default_namespace_specific__1.txt index 23757e05f..179c1466c 100644 --- a/tests/Commands/Make/__snapshots__/RuleMakeCommandTest__test_it_can_change_the_default_namespace_specific__1.txt +++ b/tests/Commands/Make/__snapshots__/RuleMakeCommandTest__test_it_can_change_the_default_namespace_specific__1.txt @@ -10,8 +10,5 @@ class UniqueRule implements ValidationRule /** * Run the validation rule. */ - public function validate(string $attribute, mixed $value, Closure $fail): void - { - // - } + public function validate(string $attribute, mixed $value, Closure $fail): void {} } diff --git a/tests/Commands/Make/__snapshots__/RuleMakeCommandTest__test_it_makes_implicit_rule__1.txt b/tests/Commands/Make/__snapshots__/RuleMakeCommandTest__test_it_makes_implicit_rule__1.txt index ef46fa0a2..dde6d3b1d 100644 --- a/tests/Commands/Make/__snapshots__/RuleMakeCommandTest__test_it_makes_implicit_rule__1.txt +++ b/tests/Commands/Make/__snapshots__/RuleMakeCommandTest__test_it_makes_implicit_rule__1.txt @@ -15,8 +15,5 @@ class ImplicitUniqueRule implements ValidationRule /** * Run the validation rule. */ - public function validate(string $attribute, mixed $value, Closure $fail): void - { - // - } + public function validate(string $attribute, mixed $value, Closure $fail): void {} } diff --git a/tests/Commands/Make/__snapshots__/RuleMakeCommandTest__test_it_makes_rule__1.txt b/tests/Commands/Make/__snapshots__/RuleMakeCommandTest__test_it_makes_rule__1.txt index f4b07d26f..3dc87b8ef 100644 --- a/tests/Commands/Make/__snapshots__/RuleMakeCommandTest__test_it_makes_rule__1.txt +++ b/tests/Commands/Make/__snapshots__/RuleMakeCommandTest__test_it_makes_rule__1.txt @@ -10,8 +10,5 @@ class UniqueRule implements ValidationRule /** * Run the validation rule. */ - public function validate(string $attribute, mixed $value, Closure $fail): void - { - // - } + public function validate(string $attribute, mixed $value, Closure $fail): void {} } diff --git a/tests/Commands/Make/__snapshots__/ScopeMakeCommandTest__test_it_can_generate_a_scope_in_sub_namespace_with_correct_generated_file__1.txt b/tests/Commands/Make/__snapshots__/ScopeMakeCommandTest__test_it_can_generate_a_scope_in_sub_namespace_with_correct_generated_file__1.txt index 9814c83b7..fcf81af37 100644 --- a/tests/Commands/Make/__snapshots__/ScopeMakeCommandTest__test_it_can_generate_a_scope_in_sub_namespace_with_correct_generated_file__1.txt +++ b/tests/Commands/Make/__snapshots__/ScopeMakeCommandTest__test_it_can_generate_a_scope_in_sub_namespace_with_correct_generated_file__1.txt @@ -11,8 +11,5 @@ class MyScope implements Scope /** * Apply the scope to a given Eloquent query builder. */ - public function apply(Builder $builder, Model $model): void - { - // - } + public function apply(Builder $builder, Model $model): void {} } diff --git a/tests/Commands/Make/__snapshots__/ScopeMakeCommandTest__test_it_generated_correct_file_with_content__1.txt b/tests/Commands/Make/__snapshots__/ScopeMakeCommandTest__test_it_generated_correct_file_with_content__1.txt index 76ab1ae04..0bfeb9603 100644 --- a/tests/Commands/Make/__snapshots__/ScopeMakeCommandTest__test_it_generated_correct_file_with_content__1.txt +++ b/tests/Commands/Make/__snapshots__/ScopeMakeCommandTest__test_it_generated_correct_file_with_content__1.txt @@ -11,8 +11,5 @@ class MyScope implements Scope /** * Apply the scope to a given Eloquent query builder. */ - public function apply(Builder $builder, Model $model): void - { - // - } + public function apply(Builder $builder, Model $model): void {} } diff --git a/tests/Commands/Make/__snapshots__/ServiceMakeCommandTest__test_it_can_generate_a_service_in_sub_namespace_with_correct_generated_file__1.txt b/tests/Commands/Make/__snapshots__/ServiceMakeCommandTest__test_it_can_generate_a_service_in_sub_namespace_with_correct_generated_file__1.txt index c59c280af..41740227c 100644 --- a/tests/Commands/Make/__snapshots__/ServiceMakeCommandTest__test_it_can_generate_a_service_in_sub_namespace_with_correct_generated_file__1.txt +++ b/tests/Commands/Make/__snapshots__/ServiceMakeCommandTest__test_it_can_generate_a_service_in_sub_namespace_with_correct_generated_file__1.txt @@ -4,8 +4,5 @@ namespace Modules\Blog\Services\Api; class MyService { - public function handle() - { - // - } + public function handle() {} } diff --git a/tests/Commands/Make/__snapshots__/ServiceMakeCommandTest__test_it_generated_correct_file_with_content__1.txt b/tests/Commands/Make/__snapshots__/ServiceMakeCommandTest__test_it_generated_correct_file_with_content__1.txt index 2a4751adb..8c304c44e 100644 --- a/tests/Commands/Make/__snapshots__/ServiceMakeCommandTest__test_it_generated_correct_file_with_content__1.txt +++ b/tests/Commands/Make/__snapshots__/ServiceMakeCommandTest__test_it_generated_correct_file_with_content__1.txt @@ -4,8 +4,5 @@ namespace Modules\Blog\Services; class MyService { - public function handle() - { - // - } + public function handle() {} } diff --git a/tests/Commands/Make/__snapshots__/TraitMakeCommandTest__test_it_can_generate_a_trait_in_sub_namespace_with_correct_generated_file__1.txt b/tests/Commands/Make/__snapshots__/TraitMakeCommandTest__test_it_can_generate_a_trait_in_sub_namespace_with_correct_generated_file__1.txt index 81f87fd99..6dcaa79e3 100644 --- a/tests/Commands/Make/__snapshots__/TraitMakeCommandTest__test_it_can_generate_a_trait_in_sub_namespace_with_correct_generated_file__1.txt +++ b/tests/Commands/Make/__snapshots__/TraitMakeCommandTest__test_it_can_generate_a_trait_in_sub_namespace_with_correct_generated_file__1.txt @@ -2,7 +2,4 @@ namespace Modules\Blog\Traits\Api; -trait MyTrait -{ - // -} +trait MyTrait {} diff --git a/tests/Commands/Make/__snapshots__/TraitMakeCommandTest__test_it_generated_correct_file_with_content__1.txt b/tests/Commands/Make/__snapshots__/TraitMakeCommandTest__test_it_generated_correct_file_with_content__1.txt index b63633e6f..0e79ec4a1 100644 --- a/tests/Commands/Make/__snapshots__/TraitMakeCommandTest__test_it_generated_correct_file_with_content__1.txt +++ b/tests/Commands/Make/__snapshots__/TraitMakeCommandTest__test_it_generated_correct_file_with_content__1.txt @@ -2,7 +2,4 @@ namespace Modules\Blog\Traits; -trait MyTrait -{ - // -} +trait MyTrait {}