@@ -45,10 +45,10 @@ |
||
45 | 45 | [ |
46 | 46 | 'name' => $definition->getName(), |
47 | 47 | 'description' => $definition->getDescription(), |
48 | - 'fields' => function () { |
|
48 | + 'fields' => function() { |
|
49 | 49 | return $this->resolveFields(); |
50 | 50 | }, |
51 | - 'resolveField' => function ($root, array $args, $context, ResolveInfo $resolveInfo) { |
|
51 | + 'resolveField' => function($root, array $args, $context, ResolveInfo $resolveInfo) { |
|
52 | 52 | $resolver = new ObjectFieldResolver($this->container, $this->endpoint, $this->definition); |
53 | 53 | |
54 | 54 | return $resolver($root, $args, $context, $resolveInfo); |
@@ -46,10 +46,10 @@ |
||
46 | 46 | [ |
47 | 47 | 'name' => $definition->getName(), |
48 | 48 | 'description' => $definition->getDescription(), |
49 | - 'fields' => function () { |
|
49 | + 'fields' => function() { |
|
50 | 50 | return $this->resolveFields(); |
51 | 51 | }, |
52 | - 'resolveType' => function ($value) { |
|
52 | + 'resolveType' => function($value) { |
|
53 | 53 | foreach ($this->definition->getImplementors() as $implementor) { |
54 | 54 | $implementorDef = $this->endpoint->getType($implementor); |
55 | 55 | //ClassUtils::getClass is required to avoid proxies |
@@ -85,7 +85,7 @@ |
||
85 | 85 | return new TypeGuess(TextType::class, [], Guess::MEDIUM_CONFIDENCE); |
86 | 86 | case Type::SIMPLE_ARRAY: |
87 | 87 | case Type::JSON_ARRAY: |
88 | - return new TypeGuess(GraphQLType::class, ['graphql_type' => Types::listOf(Types::STRING) ], Guess::MEDIUM_CONFIDENCE); |
|
88 | + return new TypeGuess(GraphQLType::class, ['graphql_type' => Types::listOf(Types::STRING)], Guess::MEDIUM_CONFIDENCE); |
|
89 | 89 | case Type::TEXT: |
90 | 90 | return new TypeGuess(TextareaType::class, [], Guess::MEDIUM_CONFIDENCE); |
91 | 91 | default: |
@@ -82,7 +82,7 @@ |
||
82 | 82 | * |
83 | 83 | * @return TypeGuess|null |
84 | 84 | */ |
85 | - protected function resolveDoctrineEnumBundleType($class, $property):?TypeGuess |
|
85 | + protected function resolveDoctrineEnumBundleType($class, $property): ?TypeGuess |
|
86 | 86 | { |
87 | 87 | if (!class_exists('\Fresh\DoctrineEnumBundle\DBAL\Types\AbstractEnumType')) { |
88 | 88 | return null; |
@@ -27,9 +27,9 @@ |
||
27 | 27 | public function buildForm(FormBuilderInterface $builder, array $options) |
28 | 28 | { |
29 | 29 | $transformer = new CallbackTransformer( |
30 | - function ($value) { |
|
30 | + function($value) { |
|
31 | 31 | }, |
32 | - function ($value) { |
|
32 | + function($value) { |
|
33 | 33 | } |
34 | 34 | ); |
35 | 35 | $builder->addModelTransformer($transformer); |