Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
Signed-off-by: Mior Muhammad Zaki <[email protected]>
  • Loading branch information
crynobone committed Aug 7, 2024
1 parent da8e1bf commit 1cf61fb
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/Concerns/CodeGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
)
);
Expand All @@ -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)
)
);
Expand Down
2 changes: 1 addition & 1 deletion src/Concerns/CreatesUsingGeneratorPreset.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ protected function addGeneratorPresetOptions()
'preset',
null,
InputOption::VALUE_OPTIONAL,
sprintf('Preset used %s', $message),
\sprintf('Preset used %s', $message),
null,
));
}
Expand Down
4 changes: 2 additions & 2 deletions tests/Concerns/UsesGeneratorOverridesTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'));
Expand All @@ -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',
Expand Down
2 changes: 1 addition & 1 deletion tests/Presets/LaravelPresetTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'));
Expand Down

0 comments on commit 1cf61fb

Please sign in to comment.