@@ -50,7 +50,7 @@ |
||
50 | 50 | * The enum values. |
51 | 51 | */ |
52 | 52 | protected function buildEnumValues($definition) { |
53 | - return array_map(function ($value) use ($definition) { |
|
53 | + return array_map(function($value) use ($definition) { |
|
54 | 54 | return [ |
55 | 55 | 'value' => $this->buildEnumValue($value, $definition), |
56 | 56 | 'description' => $this->buildEnumDescription($value, $definition), |
@@ -26,7 +26,7 @@ |
||
26 | 26 | 'deprecationReason' => $definition['deprecationReason'], |
27 | 27 | 'type' => $builder->processType($definition['type']), |
28 | 28 | 'args' => $builder->processArguments($definition['args']), |
29 | - 'resolve' => function ($value, $args, $context, $info) use ($manager, $id) { |
|
29 | + 'resolve' => function($value, $args, $context, $info) use ($manager, $id) { |
|
30 | 30 | $instance = $manager->getInstance(['id' => $id]); |
31 | 31 | return call_user_func_array([$instance, 'resolve'], [$value, $args, $context, $info]); |
32 | 32 | }, |
@@ -20,8 +20,8 @@ discard block |
||
20 | 20 | return new UnionType([ |
21 | 21 | 'name' => $definition['name'], |
22 | 22 | 'description' => $definition['description'], |
23 | - 'types' => function () use ($builder, $definition) { |
|
24 | - return array_map(function ($type) use ($builder) { |
|
23 | + 'types' => function() use ($builder, $definition) { |
|
24 | + return array_map(function($type) use ($builder) { |
|
25 | 25 | if (!(($type = $builder->getType($type)) instanceof ObjectType)) { |
26 | 26 | throw new \LogicException('Union types can only reference object types.'); |
27 | 27 | } |
@@ -29,7 +29,7 @@ discard block |
||
29 | 29 | return $type; |
30 | 30 | }, $builder->getSubTypes($definition['name'])); |
31 | 31 | }, |
32 | - 'resolveType' => function ($value, $context, $info) use ($builder, $definition) { |
|
32 | + 'resolveType' => function($value, $context, $info) use ($builder, $definition) { |
|
33 | 33 | return $builder->resolveType($definition['name'], $value, $context, $info); |
34 | 34 | }, |
35 | 35 | ]); |
@@ -16,7 +16,7 @@ |
||
16 | 16 | * The list of arguments. |
17 | 17 | */ |
18 | 18 | protected function buildArguments($definition) { |
19 | - return array_map(function ($argument) use ($definition) { |
|
19 | + return array_map(function($argument) use ($definition) { |
|
20 | 20 | return [ |
21 | 21 | 'optional' => !empty($argument['optional']), |
22 | 22 | 'type' => $this->buildArgumentType($argument, $definition), |
@@ -63,7 +63,7 @@ |
||
63 | 63 | */ |
64 | 64 | public function getCacheTags() { |
65 | 65 | $definitions = $this->getDefinitions(); |
66 | - return array_reduce($definitions, function ($carry, $current) { |
|
66 | + return array_reduce($definitions, function($carry, $current) { |
|
67 | 67 | if (!empty($current['schema_cache_tags'])) { |
68 | 68 | return Cache::mergeTags($carry, $current['schema_cache_tags']); |
69 | 69 | } |
@@ -89,7 +89,7 @@ |
||
89 | 89 | */ |
90 | 90 | public function getCacheTags() { |
91 | 91 | $definitions = $this->getDefinitions(); |
92 | - return array_reduce($definitions, function ($carry, $current) { |
|
92 | + return array_reduce($definitions, function($carry, $current) { |
|
93 | 93 | if (!empty($current['schema_cache_tags'])) { |
94 | 94 | return Cache::mergeTags($carry, $current['schema_cache_tags']); |
95 | 95 | } |
@@ -92,7 +92,7 @@ |
||
92 | 92 | */ |
93 | 93 | public function getCacheTags() { |
94 | 94 | $definitions = $this->getDefinitions(); |
95 | - return array_reduce($definitions, function ($carry, $current) { |
|
95 | + return array_reduce($definitions, function($carry, $current) { |
|
96 | 96 | if (!empty($current['schema_cache_tags'])) { |
97 | 97 | return Cache::mergeTags($carry, $current['schema_cache_tags']); |
98 | 98 | } |
@@ -89,7 +89,7 @@ |
||
89 | 89 | */ |
90 | 90 | public function getCacheTags() { |
91 | 91 | $definitions = $this->getDefinitions(); |
92 | - return array_reduce($definitions, function ($carry, $current) { |
|
92 | + return array_reduce($definitions, function($carry, $current) { |
|
93 | 93 | if (!empty($current['schema_cache_tags'])) { |
94 | 94 | return Cache::mergeTags($carry, $current['schema_cache_tags']); |
95 | 95 | } |
@@ -89,7 +89,7 @@ |
||
89 | 89 | */ |
90 | 90 | public function getCacheTags() { |
91 | 91 | $definitions = $this->getDefinitions(); |
92 | - return array_reduce($definitions, function ($carry, $current) { |
|
92 | + return array_reduce($definitions, function($carry, $current) { |
|
93 | 93 | if (!empty($current['schema_cache_tags'])) { |
94 | 94 | return Cache::mergeTags($carry, $current['schema_cache_tags']); |
95 | 95 | } |