diff --git a/src/Concerns/CodeGenerator.php b/src/Concerns/CodeGenerator.php index 16d3e0f..5d25c14 100644 --- a/src/Concerns/CodeGenerator.php +++ b/src/Concerns/CodeGenerator.php @@ -68,7 +68,7 @@ public function generatingCode(string $stub, string $className): string public function codeAlreadyExists(string $className, string $path): bool { $this->components->error( - sprintf( + \sprintf( '%s [%s] already exists!', $this->type, Str::after($path, $this->generatorPreset()->basePath().DIRECTORY_SEPARATOR) ) ); @@ -82,7 +82,7 @@ public function codeAlreadyExists(string $className, string $path): bool public function codeHasBeenGenerated(string $className, string $path): bool { $this->components->info( - sprintf( + \sprintf( '%s [%s] created successfully.', $this->type, Str::after($path, $this->generatorPreset()->basePath().DIRECTORY_SEPARATOR) ) ); diff --git a/src/Concerns/CreatesUsingGeneratorPreset.php b/src/Concerns/CreatesUsingGeneratorPreset.php index 0df0ca1..cae52a3 100644 --- a/src/Concerns/CreatesUsingGeneratorPreset.php +++ b/src/Concerns/CreatesUsingGeneratorPreset.php @@ -26,7 +26,7 @@ protected function addGeneratorPresetOptions() 'preset', null, InputOption::VALUE_OPTIONAL, - sprintf('Preset used %s', $message), + \sprintf('Preset used %s', $message), null, )); } diff --git a/tests/Concerns/UsesGeneratorOverridesTest.php b/tests/Concerns/UsesGeneratorOverridesTest.php index 5bf79ba..ad89e9b 100644 --- a/tests/Concerns/UsesGeneratorOverridesTest.php +++ b/tests/Concerns/UsesGeneratorOverridesTest.php @@ -19,7 +19,7 @@ class UsesGeneratorOverridesTest extends TestCase */ protected function setUp(): void { - $filesystem = new Filesystem(); + $filesystem = new Filesystem; $this->afterApplicationCreated(static function () use ($filesystem) { $filesystem->ensureDirectoryExists(join_paths(base_path('app'), 'Events')); @@ -37,7 +37,7 @@ protected function setUp(): void #[Test] public function it_can_get_qualify_model_class() { - $stub = new UsesGeneratorOverridesTestStub(); + $stub = new UsesGeneratorOverridesTestStub; $this->assertSame([ 'user-model' => 'App\Models\User', diff --git a/tests/Presets/LaravelPresetTest.php b/tests/Presets/LaravelPresetTest.php index 6bad39b..5c50b35 100644 --- a/tests/Presets/LaravelPresetTest.php +++ b/tests/Presets/LaravelPresetTest.php @@ -20,7 +20,7 @@ class LaravelPresetTest extends TestCase */ protected function setUp(): void { - $filesystem = new Filesystem(); + $filesystem = new Filesystem; $this->afterApplicationCreated(static function () use ($filesystem) { $filesystem->ensureDirectoryExists(join_paths(base_path('app'), 'Events'));