From 39d0dc15d2b77e56ef553d159f93d7e6b4ac6c5b Mon Sep 17 00:00:00 2001 From: rubenvanassche Date: Wed, 30 Jun 2021 14:45:16 +0000 Subject: [PATCH] Fix styling --- tests/DataTest.php | 4 ++-- .../TypeScriptTransformer/DataTypeScriptTransformerTest.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/DataTest.php b/tests/DataTest.php index 00dffcc6..655f4a16 100644 --- a/tests/DataTest.php +++ b/tests/DataTest.php @@ -85,7 +85,7 @@ public function __construct( /** @test */ public function it_can_include_a_nested_lazy_property() { - $data = new class(Lazy::create(fn () => LazyData::create('Hello')), Lazy::create(fn () => LazyData::collection([ 'is', 'it', 'me', 'your', 'looking', 'for', ])),) extends Data { + $data = new class(Lazy::create(fn () => LazyData::create('Hello')), Lazy::create(fn () => LazyData::collection([ 'is', 'it', 'me', 'your', 'looking', 'for', ])), ) extends Data { public function __construct( public Lazy | LazyData $data, /** @var \Spatie\LaravelData\Tests\Fakes\LazyData[] */ @@ -330,7 +330,7 @@ public function it_can_dynamically_include_data_based_upon_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 a064f47c..cf2b4ac8 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::create('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::create('Simple data'), SimpleData::collection([]), ) extends Data { public function __construct( public null | int $nullable, public int $int,