Passed
Push — master ( b8576e...38b002 )
by Rafael
05:51
created
src/Definition/Plugin/PaginationDefinitionPlugin.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -77,19 +77,19 @@
 block discarded – undo
77 77
 
78 78
         /** @var NodeBuilder $rootNode */
79 79
         $config->scalarNode('target')
80
-               ->info('Target node to properly paginate. If is possible will be auto-resolved using naming conventions')
81
-               ->isRequired();
80
+                ->info('Target node to properly paginate. If is possible will be auto-resolved using naming conventions')
81
+                ->isRequired();
82 82
         $config->variableNode('filters')
83
-               ->info('Filters configuration');
83
+                ->info('Filters configuration');
84 84
         $config->variableNode('order_by');
85 85
         $config->variableNode('search_fields');
86 86
         $config->integerNode('limit')->info('Max number of records allowed for first & last')->defaultValue($this->limit);
87 87
         $config->scalarNode('parent_field')
88
-               ->info('When is used in sub-fields should be the field to filter by parent instance');
88
+                ->info('When is used in sub-fields should be the field to filter by parent instance');
89 89
         $config->enumNode('parent_relation')
90
-               ->info('When is used in sub-fields should be the type of relation with the parent field')
91
-               ->defaultValue(self::ONE_TO_MANY)
92
-               ->values([self::ONE_TO_MANY, self::MANY_TO_MANY]);
90
+                ->info('When is used in sub-fields should be the type of relation with the parent field')
91
+                ->defaultValue(self::ONE_TO_MANY)
92
+                ->values([self::ONE_TO_MANY, self::MANY_TO_MANY]);
93 93
     }
94 94
 
95 95
     /**
Please login to merge, or discard this patch.
src/Definition/Plugin/MutationFormResolverPlugin.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -84,12 +84,12 @@
 block discarded – undo
84 84
             );
85 85
         $config->variableNode('options')->defaultValue([])->info('Form options');
86 86
         $config->variableNode('argument')
87
-               ->defaultValue('input')
88
-               ->info('Name of the argument to use as input');
87
+                ->defaultValue('input')
88
+                ->info('Name of the argument to use as input');
89 89
 
90 90
         $config->booleanNode('client_mutation_id')
91
-               ->defaultTrue()
92
-               ->info('Automatically add a field called clientMutationId');
91
+                ->defaultTrue()
92
+                ->info('Automatically add a field called clientMutationId');
93 93
     }
94 94
 
95 95
     /**
Please login to merge, or discard this patch.
src/Type/Definition/InputObjectDefinitionType.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -52,12 +52,12 @@
 block discarded – undo
52 52
                 'resolveField' => function ($root, array $args, ResolverContext $context, ResolveInfo $resolveInfo) use ($definition) {
53 53
                     $resolver = new ObjectFieldResolver($this->container);
54 54
                     $context = ContextBuilder::create($context->getEndpoint())
55
-                                             ->setRoot($root)
56
-                                             ->setResolveInfo($resolveInfo)
57
-                                             ->setArgs($args)
58
-                                             ->setMetas($context->getMetas())
59
-                                             ->setDefinition($definition->getField($resolveInfo->fieldName))
60
-                                             ->build();
55
+                                                ->setRoot($root)
56
+                                                ->setResolveInfo($resolveInfo)
57
+                                                ->setArgs($args)
58
+                                                ->setMetas($context->getMetas())
59
+                                                ->setDefinition($definition->getField($resolveInfo->fieldName))
60
+                                                ->build();
61 61
 
62 62
 
63 63
                     return $resolver($root, $args, $context, $resolveInfo);
Please login to merge, or discard this patch.
src/Command/SubscriptionConsumerCommand.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@
 block discarded – undo
57 57
     protected function configure()
58 58
     {
59 59
         $this->setName('graphql:subscriptions:consume')
60
-             ->setDescription('Listen for subscriptions to consume then and dispatch to mercure HUB.');
60
+                ->setDescription('Listen for subscriptions to consume then and dispatch to mercure HUB.');
61 61
     }
62 62
 
63 63
     /**
Please login to merge, or discard this patch.
src/Resolver/ResolverExecutor.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -136,12 +136,12 @@
 block discarded – undo
136 136
 
137 137
         if ($resolver && $refMethod) {
138 138
             $this->context = ContextBuilder::create($context->getEndpoint())
139
-                                           ->setRoot($root)
140
-                                           ->setResolveInfo($resolveInfo)
141
-                                           ->setArgs($args)
142
-                                           ->setMetas($context->getMetas())
143
-                                           ->setDefinition($this->executableDefinition)
144
-                                           ->build();
139
+                                            ->setRoot($root)
140
+                                            ->setResolveInfo($resolveInfo)
141
+                                            ->setArgs($args)
142
+                                            ->setMetas($context->getMetas())
143
+                                            ->setDefinition($this->executableDefinition)
144
+                                            ->build();
145 145
 
146 146
             if ($resolver instanceof ResolverInterface) {
147 147
                 $resolver->setContext($this->context);
Please login to merge, or discard this patch.
src/Resolver/ObjectFieldResolver.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -88,12 +88,12 @@
 block discarded – undo
88 88
             }
89 89
 
90 90
             $context = ContextBuilder::create($context->getEndpoint())
91
-                                     ->setArgs($args)
92
-                                     ->setRoot($root)
93
-                                     ->setDefinition($queryDefinition)
94
-                                     ->setResolveInfo($info)
95
-                                     ->setMetas($context->getMetas())
96
-                                     ->build();
91
+                                        ->setArgs($args)
92
+                                        ->setRoot($root)
93
+                                        ->setDefinition($queryDefinition)
94
+                                        ->setResolveInfo($info)
95
+                                        ->setMetas($context->getMetas())
96
+                                        ->build();
97 97
 
98 98
             $resolver = new ResolverExecutor($this->container, $queryDefinition);
99 99
             $value = $resolver($root, $args, $context, $info);
Please login to merge, or discard this patch.
src/Type/Definition/ObjectDefinitionType.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -52,12 +52,12 @@
 block discarded – undo
52 52
                 'resolveField' => function ($root, array $args, ResolverContext $context, ResolveInfo $resolveInfo) use ($definition) {
53 53
                     $resolver = new ObjectFieldResolver($this->container);
54 54
                     $context = ContextBuilder::create($context->getEndpoint())
55
-                                             ->setRoot($root)
56
-                                             ->setResolveInfo($resolveInfo)
57
-                                             ->setArgs($args)
58
-                                             ->setMetas($context->getMetas())
59
-                                             ->setDefinition($definition->getField($resolveInfo->fieldName))
60
-                                             ->build();
55
+                                                ->setRoot($root)
56
+                                                ->setResolveInfo($resolveInfo)
57
+                                                ->setArgs($args)
58
+                                                ->setMetas($context->getMetas())
59
+                                                ->setDefinition($definition->getField($resolveInfo->fieldName))
60
+                                                ->build();
61 61
 
62 62
 
63 63
                     return $resolver($root, $args, $context, $resolveInfo);
Please login to merge, or discard this patch.
src/YnloGraphQLBundle.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -55,8 +55,8 @@
 block discarded – undo
55 55
         $container->registerForAutoconfiguration(InputFieldTypeGuesser::class)->addTag('graphql.input_type_guesser');
56 56
         $container->registerForAutoconfiguration(FilterResolverInterface::class)->addTag('graphql.filter_resolver');
57 57
         $container->registerForAutoconfiguration(FilterInterface::class)
58
-                  ->addTag('graphql.list_filter')
59
-                  ->setPublic(true);
58
+                    ->addTag('graphql.list_filter')
59
+                    ->setPublic(true);
60 60
     }
61 61
 
62 62
     /**
Please login to merge, or discard this patch.
src/Type/QueryType.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -78,11 +78,11 @@
 block discarded – undo
78 78
             $eventDispatcher = $this->container->get(EventDispatcherInterface::class);
79 79
 
80 80
             $context = ContextBuilder::create($this->endpoint)
81
-                                     ->setRoot($root)
82
-                                     ->setDefinition($query)
83
-                                     ->setResolveInfo($resolveInfo)
84
-                                     ->setMetas($context->getMetas())
85
-                                     ->build();
81
+                                        ->setRoot($root)
82
+                                        ->setDefinition($query)
83
+                                        ->setResolveInfo($resolveInfo)
84
+                                        ->setMetas($context->getMetas())
85
+                                        ->build();
86 86
 
87 87
             $event = new GraphQLFieldEvent($context);
88 88
             $eventDispatcher->dispatch(GraphQLEvents::PRE_READ_FIELD, $event);
Please login to merge, or discard this patch.