@@ -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; |
@@ -90,7 +90,7 @@ discard block |
||
90 | 90 | $type = $this->_getType($config); |
91 | 91 | foreach ($type->getFields() as $key => $field) { |
92 | 92 | $newType = static::create( |
93 | - $field->config + ['typeSetter' => $config['typeSetter'] ?? null], |
|
93 | + $field->config+['typeSetter' => $config['typeSetter'] ?? null], |
|
94 | 94 | array_merge($path, [$key]) |
95 | 95 | ); |
96 | 96 |
@@ -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 | ], |