Skip to content

Commit 0c38554

Browse files
committed
Clean up formatting
1 parent f3fec18 commit 0c38554

File tree

2 files changed

+8
-10
lines changed

2 files changed

+8
-10
lines changed

tests/JSONTest.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,9 @@ public function testParseLiteralThrowsIfNotValidJSON(): void
6262

6363
public function testParseLiteralPassesIfJSONIsValid(): void
6464
{
65-
$parsed = (new JSON())->parseLiteral(new StringValueNode(['value' => /** @lang JSON */ '{"foo": "bar"}']));
65+
$parsed = (new JSON())->parseLiteral(new StringValueNode([
66+
'value' => /** @lang JSON */ '{"foo": "bar"}',
67+
]));
6668

6769
self::assertInstanceOf(\stdClass::class, $parsed);
6870
self::assertSame('bar', $parsed->foo);

tests/MixedScalarTest.php

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -87,10 +87,7 @@ public function testCastsValuesIntoAppropriatePhpValue(string $graphQLLiteral, s
8787
);
8888

8989
// Ensure that values provided as JSON have the same result as GraphQL literals
90-
self::assertSame(
91-
$graphqlResult->data,
92-
$jsonResult->data
93-
);
90+
self::assertSame($graphqlResult->data, $jsonResult->data);
9491
}
9592

9693
/**
@@ -162,11 +159,10 @@ private function executeQueryWithJsonVariable(string $jsonLiteral): ExecutionRes
162159

163160
/** @var array<string, mixed> $json */
164161
$json = \Safe\json_decode(/** @lang JSON */ <<<JSON
165-
{
166-
"var": {$jsonLiteral}
167-
}
168-
JSON
169-
,
162+
{
163+
"var": {$jsonLiteral}
164+
}
165+
JSON,
170166
true
171167
);
172168

0 commit comments

Comments
 (0)