diff --git a/src/Alert.php b/src/Alert.php index deafa16d55de6eab639cdd14124fa3c2c2918f0a..6543afc2aca6c02fce66a848f2823b56c9487865 100644 --- a/src/Alert.php +++ b/src/Alert.php @@ -12,7 +12,6 @@ use Illuminate\Support\Traits\Macroable; use JsonSerializable; use Stringable; -use function array_merge; use function is_array; use function json_encode; use function sort; diff --git a/tests/AlertTest.php b/tests/AlertTest.php index 6a6bb2a89d0c651cb9600daad893db0ccdb1488e..16f3404d6a2f923c4407e9bec0fa8b5a69738290 100644 --- a/tests/AlertTest.php +++ b/tests/AlertTest.php @@ -164,7 +164,7 @@ class AlertTest extends TestCase 'message' => 'foo', 'types' => ['bar', 'foo'], 'dismissible' => true, - 'metadata' => [] + 'metadata' => [], ], $alert->toArray() ); @@ -194,7 +194,7 @@ class AlertTest extends TestCase 'types' => ['foo', 'bar'], 'dismissible' => true, 'persist_key' => 'baz', - 'metadata' => ['foo' => 'bar'] + 'metadata' => ['foo' => 'bar'], ] ); @@ -262,7 +262,7 @@ class AlertTest extends TestCase static::assertSame('bar', $alert->getMetadata('foo')); static::assertNull($alert->getMetadata('invalid')); static::assertSame('default', $alert->getMetadata('invalid', 'default')); - static::assertSame('default', $alert->getMetadata('invalid', fn() => 'default')); + static::assertSame('default', $alert->getMetadata('invalid', fn () => 'default')); } public function test_to_string(): void