@@ -93,7 +93,7 @@ |
||
93 | 93 | //sort by priority |
94 | 94 | usort( |
95 | 95 | $orderedSpecifications, |
96 | - function ($tagSpecification1, $tagSpecification2) { |
|
96 | + function($tagSpecification1, $tagSpecification2) { |
|
97 | 97 | list($priority1) = $tagSpecification1; |
98 | 98 | list($priority2) = $tagSpecification2; |
99 | 99 |
@@ -62,7 +62,7 @@ |
||
62 | 62 | { |
63 | 63 | $executor = $this; |
64 | 64 | $this->getObjectManager()->transactional( |
65 | - function () use ($executor, $fixtures, $append) { |
|
65 | + function() use ($executor, $fixtures, $append) { |
|
66 | 66 | if ($append === false) { |
67 | 67 | $executor->purge(); |
68 | 68 | } |
@@ -24,7 +24,7 @@ |
||
24 | 24 | { |
25 | 25 | $defaults = [ |
26 | 26 | 'name' => 'Mutation', |
27 | - 'fields' => function () { |
|
27 | + 'fields' => function() { |
|
28 | 28 | $mutations = []; |
29 | 29 | foreach ($this->endpoint->allMutations() as $query) { |
30 | 30 | $mutations[$query->getName()] = $this->getQueryConfig($query); |
@@ -37,7 +37,7 @@ |
||
37 | 37 | { |
38 | 38 | $defaults = [ |
39 | 39 | 'name' => 'Query', |
40 | - 'fields' => function () { |
|
40 | + 'fields' => function() { |
|
41 | 41 | $queries = []; |
42 | 42 | foreach ($this->endpoint->allQueries() as $query) { |
43 | 43 | $queries[$query->getName()] = $this->getQueryConfig($query); |
@@ -46,25 +46,25 @@ discard block |
||
46 | 46 | { |
47 | 47 | $pagination = $root->arrayNode('pagination')->addDefaultsIfNotSet()->children(); |
48 | 48 | $pagination->integerNode('limit') |
49 | - ->defaultValue(100)->info('Maximum limit allowed for all paginations'); |
|
49 | + ->defaultValue(100)->info('Maximum limit allowed for all paginations'); |
|
50 | 50 | } |
51 | 51 | |
52 | 52 | protected function configureExtensionNamespace(NodeBuilder $root) |
53 | 53 | { |
54 | 54 | $namespaces = $root->arrayNode('namespaces') |
55 | - ->info( |
|
56 | - 'Group GraphQL schema using namespaced schemas. |
|
55 | + ->info( |
|
56 | + 'Group GraphQL schema using namespaced schemas. |
|
57 | 57 | On large schemas is helpful to keep schemas grouped by bundle and node' |
58 | - ) |
|
59 | - ->canBeEnabled() |
|
60 | - ->addDefaultsIfNotSet() |
|
61 | - ->children(); |
|
58 | + ) |
|
59 | + ->canBeEnabled() |
|
60 | + ->addDefaultsIfNotSet() |
|
61 | + ->children(); |
|
62 | 62 | |
63 | 63 | $bundles = $namespaces->arrayNode('bundles') |
64 | - ->info('Group each bundle into a separate schema definition') |
|
65 | - ->canBeDisabled() |
|
66 | - ->addDefaultsIfNotSet() |
|
67 | - ->children(); |
|
64 | + ->info('Group each bundle into a separate schema definition') |
|
65 | + ->canBeDisabled() |
|
66 | + ->addDefaultsIfNotSet() |
|
67 | + ->children(); |
|
68 | 68 | |
69 | 69 | $bundles->scalarNode('suffix') |
70 | 70 | ->info('The following suffix will be used for bundle groups') |
@@ -91,24 +91,24 @@ discard block |
||
91 | 91 | ->children(); |
92 | 92 | |
93 | 93 | $nodes->scalarNode('query_suffix') |
94 | - ->info('The following suffix will be used to create the name for queries to the same node') |
|
95 | - ->defaultValue('Query'); |
|
94 | + ->info('The following suffix will be used to create the name for queries to the same node') |
|
95 | + ->defaultValue('Query'); |
|
96 | 96 | |
97 | 97 | $nodes->scalarNode('mutation_suffix') |
98 | - ->info('The following suffix will be used to create the name for mutations to the same node') |
|
99 | - ->defaultValue('Mutation'); |
|
98 | + ->info('The following suffix will be used to create the name for mutations to the same node') |
|
99 | + ->defaultValue('Mutation'); |
|
100 | 100 | |
101 | 101 | $nodes->variableNode('ignore') |
102 | - ->info('The following nodes will be ignore for grouping, all definitions will be placed in the root query or mutation') |
|
103 | - ->defaultValue(['Node']); |
|
102 | + ->info('The following nodes will be ignore for grouping, all definitions will be placed in the root query or mutation') |
|
103 | + ->defaultValue(['Node']); |
|
104 | 104 | |
105 | 105 | $nodes->arrayNode('aliases') |
106 | - ->info( |
|
107 | - 'Define aliases for nodes to set definitions inside other desired node name. |
|
106 | + ->info( |
|
107 | + 'Define aliases for nodes to set definitions inside other desired node name. |
|
108 | 108 | Can be used to group multiple nodes or publish a node with a different group name' |
109 | - ) |
|
110 | - ->example('InvoiceItem: Invoice') |
|
111 | - ->useAttributeAsKey('name') |
|
112 | - ->prototype('scalar'); |
|
109 | + ) |
|
110 | + ->example('InvoiceItem: Invoice') |
|
111 | + ->useAttributeAsKey('name') |
|
112 | + ->prototype('scalar'); |
|
113 | 113 | } |
114 | 114 | } |
@@ -183,7 +183,7 @@ |
||
183 | 183 | //sort by priority |
184 | 184 | usort( |
185 | 185 | $extensions, |
186 | - function ($extension1, $extension2) { |
|
186 | + function($extension1, $extension2) { |
|
187 | 187 | list($priority1) = $extension1; |
188 | 188 | list($priority2) = $extension2; |
189 | 189 |
@@ -40,8 +40,8 @@ |
||
40 | 40 | if ($formBuilder) { |
41 | 41 | $formBuilder->addEventSubscriber($this); |
42 | 42 | |
43 | - $extensionExecutor = function ($method) { |
|
44 | - return function (FormEvent $event) use ($method) { |
|
43 | + $extensionExecutor = function($method) { |
|
44 | + return function(FormEvent $event) use ($method) { |
|
45 | 45 | foreach ($this->extensions as $extension) { |
46 | 46 | return call_user_func_array([$extension, $method], [$event]); |
47 | 47 | } |
@@ -66,7 +66,7 @@ |
||
66 | 66 | |
67 | 67 | $config = [ |
68 | 68 | 'types' => TypeRegistry::all(), |
69 | - 'typeLoader' => function ($name) { |
|
69 | + 'typeLoader' => function($name) { |
|
70 | 70 | return TypeRegistry::get($name); |
71 | 71 | }, |
72 | 72 | ]; |
@@ -112,7 +112,7 @@ |
||
112 | 112 | * |
113 | 113 | * @return string |
114 | 114 | */ |
115 | - protected function getGraphQLType(?string $type):?string |
|
115 | + protected function getGraphQLType(?string $type) : ?string |
|
116 | 116 | { |
117 | 117 | switch ($type) { |
118 | 118 | case DoctrineType::BOOLEAN: |