@@ -63,7 +63,7 @@ |
||
63 | 63 | //parse |
64 | 64 | array_walk_recursive( |
65 | 65 | $parsedValue, |
66 | - function (&$value) use ($definitionCall, $argumentIndex) { |
|
66 | + function(&$value) use ($definitionCall, $argumentIndex) { |
|
67 | 67 | foreach ($this->transformers as $transformer) { |
68 | 68 | if ($transformer->supportsDefinitionAndArgument($definitionCall, $argumentIndex, $value)) { |
69 | 69 | $value = $transformer->transformArgument($definitionCall, $argumentIndex, $value); |
@@ -30,15 +30,15 @@ |
||
30 | 30 | if (preg_match('/search\(/', $expression)) { |
31 | 31 | $el->register( |
32 | 32 | 'search', |
33 | - function ($expression, $data) { |
|
33 | + function($expression, $data) { |
|
34 | 34 | return sprintf('$search(%s, %s)', $expression, $data); |
35 | 35 | }, |
36 | - function (array $variables, $expression, $data) { |
|
36 | + function(array $variables, $expression, $data) { |
|
37 | 37 | return $variables['search']($expression, $data); |
38 | 38 | } |
39 | 39 | ); |
40 | 40 | |
41 | - $values['search'] = function ($expression, $data) { |
|
41 | + $values['search'] = function($expression, $data) { |
|
42 | 42 | return search($expression, $data); |
43 | 43 | }; |
44 | 44 | } |
@@ -55,7 +55,7 @@ |
||
55 | 55 | if (!empty($this->warnings)) { |
56 | 56 | uasort( |
57 | 57 | $this->warnings, |
58 | - function ($a, $b) { |
|
58 | + function($a, $b) { |
|
59 | 59 | if (count($a) === count($b)) { |
60 | 60 | return 0; |
61 | 61 | } |
@@ -207,10 +207,10 @@ |
||
207 | 207 | $paramName = 'root'.mt_rand(); |
208 | 208 | if ($this->queryDefinition->getMeta('pagination')['parent_relation'] === PaginationDefinitionPlugin::MANY_TO_MANY) { |
209 | 209 | $qb->andWhere(sprintf(':%s MEMBER OF %s.%s', $paramName, $this->queryAlias, $parentField)) |
210 | - ->setParameter($paramName, $root); |
|
210 | + ->setParameter($paramName, $root); |
|
211 | 211 | } else { |
212 | 212 | $qb->andWhere(sprintf('%s.%s = :%s', $this->queryAlias, $parentField, $paramName)) |
213 | - ->setParameter($paramName, $root); |
|
213 | + ->setParameter($paramName, $root); |
|
214 | 214 | } |
215 | 215 | } |
216 | 216 | } |
@@ -68,7 +68,7 @@ |
||
68 | 68 | } |
69 | 69 | $this->definitionVisited[$key] = true; |
70 | 70 | |
71 | - $type = $endpoint->hasType($definition->getType()) ? $endpoint->getType($definition->getType()): null; |
|
71 | + $type = $endpoint->hasType($definition->getType()) ? $endpoint->getType($definition->getType()) : null; |
|
72 | 72 | |
73 | 73 | if (($roles = $definition->getRoles()) && !$this->authorizationChecker->isGranted($roles)) { |
74 | 74 | if ($parent) { |
@@ -65,15 +65,15 @@ |
||
65 | 65 | |
66 | 66 | /** @var NodeBuilder $rootNode */ |
67 | 67 | $config->scalarNode('target') |
68 | - ->info('Target node to properly paginate. If is possible will be auto-resolved using naming conventions') |
|
69 | - ->isRequired(); |
|
68 | + ->info('Target node to properly paginate. If is possible will be auto-resolved using naming conventions') |
|
69 | + ->isRequired(); |
|
70 | 70 | $config->integerNode('limit')->info('Max number of records allowed for first & last')->defaultValue($this->limit); |
71 | 71 | $config->scalarNode('parent_field') |
72 | - ->info('When is used in sub-fields should be the field to filter by parent instance'); |
|
72 | + ->info('When is used in sub-fields should be the field to filter by parent instance'); |
|
73 | 73 | $config->enumNode('parent_relation') |
74 | - ->info('When is used in sub-fields should be the type of relation with the parent field') |
|
75 | - ->defaultValue(self::ONE_TO_MANY) |
|
76 | - ->values([self::ONE_TO_MANY, self::MANY_TO_MANY]); |
|
74 | + ->info('When is used in sub-fields should be the type of relation with the parent field') |
|
75 | + ->defaultValue(self::ONE_TO_MANY) |
|
76 | + ->values([self::ONE_TO_MANY, self::MANY_TO_MANY]); |
|
77 | 77 | } |
78 | 78 | |
79 | 79 | /** |
@@ -67,22 +67,22 @@ |
||
67 | 67 | ->children(); |
68 | 68 | |
69 | 69 | $config->variableNode('type') |
70 | - ->defaultNull() |
|
71 | - ->info( |
|
72 | - 'Specify the form type to use, |
|
70 | + ->defaultNull() |
|
71 | + ->info( |
|
72 | + 'Specify the form type to use, |
|
73 | 73 | [string] Name of the form type to use |
74 | 74 | [true|null] The form will be automatically resolved to ...Bundle\Form\Input\{Node}\{MutationName}Input. |
75 | 75 | [true] Throw a exception if the form can`t be located |
76 | 76 | [false] The form is not required and should not be resolved' |
77 | - ); |
|
77 | + ); |
|
78 | 78 | $config->variableNode('options')->defaultValue([])->info('Form options'); |
79 | 79 | $config->variableNode('argument') |
80 | - ->defaultValue('input') |
|
81 | - ->info('Name of the argument to use as input'); |
|
80 | + ->defaultValue('input') |
|
81 | + ->info('Name of the argument to use as input'); |
|
82 | 82 | |
83 | 83 | $config->booleanNode('client_mutation_id') |
84 | - ->defaultTrue() |
|
85 | - ->info('Automatically add a field called clientMutationId'); |
|
84 | + ->defaultTrue() |
|
85 | + ->info('Automatically add a field called clientMutationId'); |
|
86 | 86 | } |
87 | 87 | |
88 | 88 | /** |
@@ -43,7 +43,7 @@ discard block |
||
43 | 43 | if ($formBuilder) { |
44 | 44 | $formBuilder->addEventListener( |
45 | 45 | FormEvents::SUBMIT, |
46 | - function (FormEvent $event) use (&$mutationEvent) { |
|
46 | + function(FormEvent $event) use (&$mutationEvent) { |
|
47 | 47 | if ($this->eventDispatcher) { |
48 | 48 | $mutationEvent = new GraphQLMutationEvent($this->context, $event); |
49 | 49 | $this->eventDispatcher->dispatch(GraphQLEvents::MUTATION_SUBMITTED, $mutationEvent); |
@@ -53,8 +53,8 @@ discard block |
||
53 | 53 | |
54 | 54 | $formBuilder->addEventSubscriber($this); |
55 | 55 | |
56 | - $extensionExecutor = function ($method) { |
|
57 | - return function (FormEvent $event) use ($method) { |
|
56 | + $extensionExecutor = function($method) { |
|
57 | + return function(FormEvent $event) use ($method) { |
|
58 | 58 | foreach ($this->extensions as $extension) { |
59 | 59 | return call_user_func_array([$extension, $method], [$event]); |
60 | 60 | } |
@@ -103,9 +103,9 @@ |
||
103 | 103 | |
104 | 104 | /** @var iterable $files */ |
105 | 105 | $files = Finder::create() |
106 | - ->in($dirs) |
|
107 | - ->date(sprintf('>= %s', date('Y-m-d H:i:s', $controlTime))) |
|
108 | - ->files(); |
|
106 | + ->in($dirs) |
|
107 | + ->date(sprintf('>= %s', date('Y-m-d H:i:s', $controlTime))) |
|
108 | + ->files(); |
|
109 | 109 | |
110 | 110 | //exist at least one modified file |
111 | 111 | foreach ($files as $file) { |