@@ -38,7 +38,7 @@ public function it_publishes_migration(): void
3838 $ migrationsPath = $ this ->app ->databasePath ().DIRECTORY_SEPARATOR .'migrations ' .DIRECTORY_SEPARATOR ;
3939
4040 // Remove any existing matching migrations in the database/migrations folder for a clean test
41- $ existing = glob ($ migrationsPath .'*_ ' . 'create_push_subscriptions_table.php ' );
41+ $ existing = glob ($ migrationsPath .'*_ ' . 'create_push_subscriptions_table.php ' );
4242 foreach ($ existing as $ file ) {
4343 @unlink ($ file );
4444 }
@@ -50,7 +50,7 @@ public function it_publishes_migration(): void
5050
5151 $ this ->assertEquals (0 , $ exit );
5252
53- $ found = glob ($ migrationsPath .'*_ ' . 'create_push_subscriptions_table.php ' );
53+ $ found = glob ($ migrationsPath .'*_ ' . 'create_push_subscriptions_table.php ' );
5454
5555 $ this ->assertNotEmpty ($ found , 'No migration was published to the database/migrations path ' );
5656
@@ -74,11 +74,11 @@ public function it_does_not_generate_duplicate_migration_if_one_already_exists()
7474 }
7575
7676 // Ensure no existing matching migrations are present before the test
77- $ existing = glob ($ migrationsPath . '*_create_push_subscriptions_table.php ' );
77+ $ existing = glob ($ migrationsPath. '*_create_push_subscriptions_table.php ' );
7878 foreach ($ existing as $ file ) {
7979 @unlink ($ file );
8080 }
81-
81+
8282 // Create a fake existing migration file in the app migrations directory that should be detected and reused
8383 $ existingFilename = $ migrationsPath .'2020_01_01_000000_create_push_subscriptions_table.php ' ;
8484 file_put_contents ($ existingFilename , "<?php \n// existing migration \n" );
@@ -101,7 +101,7 @@ public function it_does_not_generate_duplicate_migration_if_one_already_exists()
101101 $ this ->assertEquals (0 , $ exit );
102102
103103 // After publishing, ensure no additional migration with a different timestamp suffix was created
104- $ found = glob ($ migrationsPath .'*_ ' . 'create_push_subscriptions_table.php ' );
104+ $ found = glob ($ migrationsPath .'*_ ' . 'create_push_subscriptions_table.php ' );
105105
106106 // There should be exactly one matching migration (the existing one we created)
107107 $ this ->assertCount (1 , $ found , 'A duplicate migration file was created instead of reusing the existing one ' );
0 commit comments