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')
77
77
FieldBuilder::create('firstName', Type::string())
78
78
->setDescription('User first name')
79
79
->build(),
80
- FieldBuilder::create('email', Type::string())
81
- ->build(),
80
+ FieldBuilder::create('email', Type::string())->build(),
82
81
])
83
82
->setFieldResolver(
84
83
static function(User $user, $args, $context, ResolveInfo $info) {
@@ -91,9 +90,7 @@ $userType = ObjectBuilder::create('User')
91
90
return null;
92
91
}
93
92
}
94
- )
95
- ->build();
96
-
93
+ )->build();
97
94
```
98
95
99
96
#### EnumBuilder
@@ -175,6 +172,7 @@ $character = new InterfaceType([
175
172
176
173
``` php
177
174
<?php
175
+
178
176
use SimPod\GraphQLUtils\Builder\InterfaceBuilder;
179
177
use SimPod\GraphQLUtils\Builder\FieldBuilder;
180
178
use GraphQL\Type\Definition\Type;
@@ -196,9 +194,8 @@ $character = InterfaceBuilder::create('Character')
196
194
}
197
195
198
196
return MyTypes::droid();
199
- }
200
- )
201
- ->build();
197
+ }
198
+ )->build();
202
199
```
203
200
204
201
### Types
@@ -251,7 +248,7 @@ use SimPod\GraphQLUtils\Error\FormattedError;
251
248
252
249
$formatError = static function (Error $error) : array
253
250
{
254
- if (!$error->isClientSafe()) {
251
+ if (! $error->isClientSafe()) {
255
252
// eg. log error
256
253
}
257
254
You can’t perform that action at this time.
0 commit comments