Skip to content

Commit 668b69c

Browse files
committed
Fix readme formatting
1 parent 9ac2233 commit 668b69c

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

README.md

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff 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+
178176
use SimPod\GraphQLUtils\Builder\InterfaceBuilder;
179177
use SimPod\GraphQLUtils\Builder\FieldBuilder;
180178
use 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

0 commit comments

Comments
 (0)