From 48d64be9b3d06fd5ea4f2d759297d078be1beafe Mon Sep 17 00:00:00 2001 From: Chris Morrell Date: Wed, 3 Apr 2024 12:31:51 -0400 Subject: [PATCH] Code style --- src/Console/Commands/Make/MakeModule.php | 10 +++++----- tests/Commands/Make/MakeModuleTest.php | 18 +++++++++--------- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/src/Console/Commands/Make/MakeModule.php b/src/Console/Commands/Make/MakeModule.php index e3ca012..ba330c9 100644 --- a/src/Console/Commands/Make/MakeModule.php +++ b/src/Console/Commands/Make/MakeModule.php @@ -95,13 +95,13 @@ public function handle() $this->newLine(); - if ($this->shouldAbortToPublishConfig()) { - return 0; - } + if ($this->shouldAbortToPublishConfig()) { + return 0; + } - $this->ensureModulesDirectoryExists(); + $this->ensureModulesDirectoryExists(); - $this->writeStubs(); + $this->writeStubs(); $this->updateCoreComposerConfig(); $this->call(ModulesClear::class); diff --git a/tests/Commands/Make/MakeModuleTest.php b/tests/Commands/Make/MakeModuleTest.php index ca6c522..220c367 100644 --- a/tests/Commands/Make/MakeModuleTest.php +++ b/tests/Commands/Make/MakeModuleTest.php @@ -100,16 +100,16 @@ public function test_it_prompts_on_first_module_if_no_custom_namespace_is_set(): $this->assertTrue($fs->isDirectory($this->getBasePath().'/app-modules/test-module-two')); } - public function test_it_does_not_create_an_empty_directory_if_prompt_on_first_module_if_no_custom_namespace_is_set_is_rejected(): void - { - $fs = $this->filesystem(); + public function test_it_does_not_create_an_empty_directory_if_prompt_on_first_module_if_no_custom_namespace_is_set_is_rejected(): void + { + $fs = $this->filesystem(); - $this->artisan(MakeModule::class, ['name' => 'test-module']) - ->expectsQuestion('Would you like to cancel and configure your module namespace first?', true) - ->assertExitCode(0); + $this->artisan(MakeModule::class, ['name' => 'test-module']) + ->expectsQuestion('Would you like to cancel and configure your module namespace first?', true) + ->assertExitCode(0); - Modules::reload(); + Modules::reload(); - $this->assertFalse($fs->isDirectory($this->getBasePath().'/app-modules/test-module')); - } + $this->assertFalse($fs->isDirectory($this->getBasePath().'/app-modules/test-module')); + } }