From 7011d255edf0d0991f35d112e5b0efd27945a7d6 Mon Sep 17 00:00:00 2001 From: rubenvanassche Date: Mon, 23 Aug 2021 13:49:53 +0000 Subject: [PATCH] Fix styling --- tests/DataTest.php | 2 +- .../TypeScriptTransformer/DataTypeScriptTransformerTest.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/DataTest.php b/tests/DataTest.php index 8b74f444..d7627ba2 100644 --- a/tests/DataTest.php +++ b/tests/DataTest.php @@ -432,7 +432,7 @@ public function it_can_disable_excluding_data_dynamically_from_the_request() /** @test */ public function it_can_get_the_data_object_without_transforming() { - $data = new class($dataObject = new SimpleData('Test'), $dataCollection = SimpleData::collection([new SimpleData('A'), new SimpleData('B'), ]), Lazy::create(fn () => new SimpleData('Lazy')), 'Test', $transformable = new DateTime('16 may 1994'),) extends Data { + $data = new class($dataObject = new SimpleData('Test'), $dataCollection = SimpleData::collection([new SimpleData('A'), new SimpleData('B'), ]), Lazy::create(fn () => new SimpleData('Lazy')), 'Test', $transformable = new DateTime('16 may 1994'), ) extends Data { public function __construct( public SimpleData $data, public DataCollection $dataCollection, diff --git a/tests/Support/TypeScriptTransformer/DataTypeScriptTransformerTest.php b/tests/Support/TypeScriptTransformer/DataTypeScriptTransformerTest.php index e4b9e337..ed1d7b25 100644 --- a/tests/Support/TypeScriptTransformer/DataTypeScriptTransformerTest.php +++ b/tests/Support/TypeScriptTransformer/DataTypeScriptTransformerTest.php @@ -18,7 +18,7 @@ public function it_can_covert_a_data_object_to_typescript() { $config = TypeScriptTransformerConfig::create(); - $data = new class(null, 42, true, 'Hello world', 3.14, ['the', 'meaning', 'of', 'life'], Lazy::create(fn () => 'Lazy'), SimpleData::from('Simple data'), SimpleData::collection([]), ) extends Data { + $data = new class(null, 42, true, 'Hello world', 3.14, ['the', 'meaning', 'of', 'life'], Lazy::create(fn () => 'Lazy'), SimpleData::from('Simple data'), SimpleData::collection([]),) extends Data { public function __construct( public null | int $nullable, public int $int,