Skip to content

Commit

Permalink
Merge pull request #205 from JackieDo/Re-format-migration-stub
Browse files Browse the repository at this point in the history
Update MakeSettingsMigrationCommand.php
  • Loading branch information
rubenvanassche authored Mar 2, 2023
2 parents 2f65315 + 010648d commit 8334892
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Console/MakeSettingsMigrationCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public function handle(): void

$this->files->put(
$file = $this->getPath($name, $path),
str_replace('{{ class }}', $name, $this->getStub())
$this->getStub()
);

$this->info(sprintf('Setting migration [%s] created successfully.', $file));
Expand All @@ -52,13 +52,13 @@ protected function getStub(): string
use Spatie\LaravelSettings\Migrations\SettingsMigration;
class {{ class }} extends SettingsMigration
return new class extends SettingsMigration
{
public function up(): void
{
}
}
};
EOT;
}
Expand Down

0 comments on commit 8334892

Please sign in to comment.