@@ -59,7 +59,7 @@ |
||
59 | 59 | 'authorId' => [ |
60 | 60 | 'type' => Type::id(), |
61 | 61 | 'description' => 'An author Id', |
62 | - 'validate' => static function($authorId) { |
|
62 | + 'validate' => static function ($authorId) { |
|
63 | 63 | return !empty($authorId); |
64 | 64 | } |
65 | 65 | ], |
@@ -52,7 +52,7 @@ discard block |
||
52 | 52 | |
53 | 53 | protected function _getType($config): Type { |
54 | 54 | $type = $config['type']; |
55 | - if($type instanceof NonNull) { |
|
55 | + if ($type instanceof NonNull) { |
|
56 | 56 | $type = $type->getWrappedType(); |
57 | 57 | } |
58 | 58 | return $type; |
@@ -88,7 +88,7 @@ discard block |
||
88 | 88 | $fields = []; |
89 | 89 | foreach ($type->getFields() as $key => $field) { |
90 | 90 | $newType = static::create( |
91 | - $field->config + ['typeSetter' => $config['typeSetter'] ?? null], |
|
91 | + $field->config+['typeSetter' => $config['typeSetter'] ?? null], |
|
92 | 92 | array_merge($path, [$key]) |
93 | 93 | ); |
94 | 94 |