We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 558f3df commit ffb90bcCopy full SHA for ffb90bc
src/Type/Fieldtype/FieldtypeOptions.php
@@ -21,8 +21,8 @@ class FieldtypeOptions
21
22
public static function type($field)
23
{
24
- return Cache::type(self::$name, function () use ($field) {
25
- $type = new ObjectType([
+ $type = Cache::type(self::$name, function () use ($field) {
+ return new ObjectType([
26
'name' => self::$name,
27
'description' => self::$description,
28
'fields' => [
@@ -52,13 +52,13 @@ public static function type($field)
52
]
53
],
54
]);
55
+ });
56
- if (self::isMultiple($field)) {
57
- return Type::listOf($type);
58
- }
+ if (self::isMultiple($field)) {
+ return Type::listOf($type);
59
+ }
60
- return $type;
61
- });
+ return $type;
62
}
63
64
public static function inputType($field)
0 commit comments