Skip to content

Commit 8d972d9

Browse files
committed
CS
1 parent 5059c5b commit 8d972d9

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

src/ResultIteratorType.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,7 @@ public function build($config)
3737
$config->addField('count', [
3838
'type' => new IntType(),
3939
'description' => 'Returns the total number of items in the collection.',
40-
'resolve' => function (ResultIterator $source, $args, $info)
41-
{
40+
'resolve' => function (ResultIterator $source, $args, $info) {
4241
return $source->count();
4342
}
4443
]);
@@ -50,8 +49,7 @@ public function build($config)
5049
'offset' => new IntType(),
5150
'order' => new StringType(),
5251
],
53-
'resolve' => function (ResultIterator $source, $args, $info)
54-
{
52+
'resolve' => function (ResultIterator $source, $args, $info) {
5553
if (isset($args['order'])) {
5654
$source = $source->withOrder($args['order']);
5755
}

tests/GraphQLTypeGeneratorTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,5 @@ public function testResultIteratorType()
215215

216216
$this->expectException(GraphQLException::class);
217217
$result = $itemsField->resolve($countries, ['offset'=>1], $resolveInfo);
218-
219218
}
220219
}

0 commit comments

Comments
 (0)