Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenvanassche authored and github-actions[bot] committed Mar 10, 2023
1 parent b7e0513 commit 4814073
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/LaravelSettingsServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ private function removeMigrationsWhenSchemaLoaded(SchemaLoaded $event)
->map(function (SplFileInfo $file) {
$contents = file_get_contents($file->getRealPath());

if(
if (
str_contains($contents, 'return new class extends '.SettingsMigration::class)
|| str_contains($contents, 'return new class extends SettingsMigration')
) {
Expand All @@ -90,7 +90,7 @@ private function removeMigrationsWhenSchemaLoaded(SchemaLoaded $event)

require_once $file->getRealPath();

if(! is_subclass_of($found['className'], SettingsMigration::class)){
if (! is_subclass_of($found['className'], SettingsMigration::class)) {
return null;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

return new class extends Migration
{
return new class extends Migration {
public function up()
{
Schema::create('fake-anonymous-class-table', function (Blueprint $table): void {
Expand Down

0 comments on commit 4814073

Please sign in to comment.