Skip to content

Commit ecfb671

Browse files
committed
Fix cs
1 parent 3d815d9 commit ecfb671

File tree

5 files changed

+5
-12
lines changed

5 files changed

+5
-12
lines changed

src/Type/Registry/DefaultStandardTypeRegistry.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@
99
use GraphQL\Type\Definition\FloatType;
1010
use GraphQL\Type\Definition\IDType;
1111
use GraphQL\Type\Definition\IntType;
12-
use GraphQL\Type\Definition\ListOfType;
13-
use GraphQL\Type\Definition\NonNull;
1412
use GraphQL\Type\Definition\ScalarType;
1513
use GraphQL\Type\Definition\StringType;
1614
use GraphQL\Type\Definition\Type;

src/Type/Registry/StandardTypeRegistry.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@
44

55
use GraphQL\Error\InvariantViolation;
66
use GraphQL\Type\Definition\Directive;
7-
use GraphQL\Type\Definition\ListOfType;
8-
use GraphQL\Type\Definition\NonNull;
9-
use GraphQL\Type\Definition\NullableType;
107
use GraphQL\Type\Definition\ScalarType;
118
use GraphQL\Type\Definition\Type;
129
use GraphQL\Type\Introspection;

src/Utils/ASTDefinitionBuilder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ private function internalBuildType(string $typeName, Node $typeNode = null): Typ
253253
{
254254
$this->cache ??= [
255255
...$this->typeRegistry->introspection()->getTypes(),
256-
...$this->typeRegistry->standardTypes()
256+
...$this->typeRegistry->standardTypes(),
257257
];
258258

259259
if (isset($this->cache[$typeName])) {

src/Utils/BuildClientSchema.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ public function buildSchema(): Schema
113113

114114
$builtInTypes = [
115115
...$this->typeRegistry->standardTypes(),
116-
...$this->typeRegistry->introspection()->getTypes()
116+
...$this->typeRegistry->introspection()->getTypes(),
117117
];
118118

119119
foreach ($schemaIntrospection['types'] as $typeIntrospection) {

tests/MultipleSchemaTest.php

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
namespace GraphQL\Tests;
44

5-
use GraphQL\Executor\Promise\Adapter\SyncPromiseAdapter;
6-
use GraphQL\Executor\Promise\Promise;
75
use GraphQL\GraphQL;
86
use GraphQL\Type\Definition\ObjectType;
97
use GraphQL\Type\Definition\Type;
@@ -27,7 +25,7 @@ public function testMultipleSchemasWithCustomIntType(): void
2725
self::assertNotSame($schema1->getType('Int'), $schema2->getType('Int'));
2826
}
2927

30-
private function createSchema() : Schema
28+
private function createSchema(): Schema
3129
{
3230
$typeRegistry = new DefaultStandardTypeRegistry(
3331
CustomIntType::class
@@ -38,7 +36,7 @@ private function createSchema() : Schema
3836
'fields' => [
3937
'count' => [
4038
'type' => Type::nonNull($typeRegistry->int()),
41-
'resolve' => fn() => 1,
39+
'resolve' => fn () => 1,
4240
],
4341
],
4442
]);
@@ -48,6 +46,6 @@ private function createSchema() : Schema
4846
'query' => $query,
4947
]);
5048

51-
return new Schema($config) ;
49+
return new Schema($config);
5250
}
5351
}

0 commit comments

Comments
 (0)