File tree Expand file tree Collapse file tree 1 file changed +6
-9
lines changed Expand file tree Collapse file tree 1 file changed +6
-9
lines changed Original file line number Diff line number Diff line change @@ -77,8 +77,7 @@ $userType = ObjectBuilder::create('User')
7777 FieldBuilder::create('firstName', Type::string())
7878 ->setDescription('User first name')
7979 ->build(),
80- FieldBuilder::create('email', Type::string())
81- ->build(),
80+ FieldBuilder::create('email', Type::string())->build(),
8281 ])
8382 ->setFieldResolver(
8483 static function(User $user, $args, $context, ResolveInfo $info) {
@@ -91,9 +90,7 @@ $userType = ObjectBuilder::create('User')
9190 return null;
9291 }
9392 }
94- )
95- ->build();
96-
93+ )->build();
9794```
9895
9996#### EnumBuilder
@@ -175,6 +172,7 @@ $character = new InterfaceType([
175172
176173``` php
177174<?php
175+
178176use SimPod\GraphQLUtils\Builder\InterfaceBuilder;
179177use SimPod\GraphQLUtils\Builder\FieldBuilder;
180178use GraphQL\Type\Definition\Type;
@@ -196,9 +194,8 @@ $character = InterfaceBuilder::create('Character')
196194 }
197195
198196 return MyTypes::droid();
199- }
200- )
201- ->build();
197+ }
198+ )->build();
202199```
203200
204201### Types
@@ -251,7 +248,7 @@ use SimPod\GraphQLUtils\Error\FormattedError;
251248
252249$formatError = static function (Error $error) : array
253250{
254- if (!$error->isClientSafe()) {
251+ if (! $error->isClientSafe()) {
255252 // eg. log error
256253 }
257254
You can’t perform that action at this time.
0 commit comments