From 3f6513403c6e130175c36377b19bb6cd89c7bd52 Mon Sep 17 00:00:00 2001 From: sfolador <36632+sfolador@users.noreply.github.com> Date: Tue, 14 Jan 2025 19:18:02 +0000 Subject: [PATCH] Fix styling --- src/DevicesServiceProvider.php | 2 +- src/Models/Device.php | 2 +- tests/TestSupport/TestCase.php | 7 +++---- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/src/DevicesServiceProvider.php b/src/DevicesServiceProvider.php index 15cfe1a..6e26f60 100644 --- a/src/DevicesServiceProvider.php +++ b/src/DevicesServiceProvider.php @@ -22,7 +22,7 @@ public function configurePackage(Package $package): void ->hasRoutes('devices_routes') ->hasMigrations( ['create_devices_table', - 'add_firebasetoken_devices_table', + 'add_firebasetoken_devices_table', 'add_indexes_for_tokens']); } diff --git a/src/Models/Device.php b/src/Models/Device.php index d745fd7..9cb8fb4 100644 --- a/src/Models/Device.php +++ b/src/Models/Device.php @@ -28,7 +28,7 @@ class Device extends Model 'token', 'notifiable_id', 'notifiable_type', - 'firebaseToken' + 'firebaseToken', ]; protected $casts = [ diff --git a/tests/TestSupport/TestCase.php b/tests/TestSupport/TestCase.php index 06fc656..bd8959b 100644 --- a/tests/TestSupport/TestCase.php +++ b/tests/TestSupport/TestCase.php @@ -38,7 +38,6 @@ public function getEnvironmentSetUp($app) 'prefix' => '', ]); - Schema::create('testnotifiables', function (Blueprint $table) { $table->id(); @@ -53,9 +52,9 @@ protected function runMigrations(): void { // Include and run each migration manually to ensure they execute $migrations = [ - include __DIR__ . '/../../database/migrations/create_devices_table.php', - include __DIR__ . '/../../database/migrations/add_firebasetoken_devices_table.php', - include __DIR__ . '/../../database/migrations/add_indexes_for_tokens.php', + include __DIR__.'/../../database/migrations/create_devices_table.php', + include __DIR__.'/../../database/migrations/add_firebasetoken_devices_table.php', + include __DIR__.'/../../database/migrations/add_indexes_for_tokens.php', ]; // Run each migration