Passed
Push — master ( 0b86b2...26cfdb )
by Rafael
13:17
created
src/Form/Type/IDType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -84,7 +84,7 @@
 block discarded – undo
84 84
         $resolver->setDefault('alternative_id', null);
85 85
         $resolver->setNormalizer(
86 86
             'alternative_id',
87
-            function (Options $options, $value) {
87
+            function(Options $options, $value) {
88 88
                 if ($value && !$options->offsetGet('class')) {
89 89
                     throw new InvalidArgumentException('Can\'t set the option "alternative_id" without define a valid "class"');
90 90
                 }
Please login to merge, or discard this patch.
src/Resolver/DeferredBuffer.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -78,8 +78,8 @@
 block discarded – undo
78 78
             $repo = $this->registry->getRepository($class);
79 79
             $qb = $repo->createQueryBuilder('o', 'o.id');
80 80
             $entities = $qb->where($qb->expr()->in('o.id', array_values($ids)))
81
-                           ->getQuery()
82
-                           ->getResult();
81
+                            ->getQuery()
82
+                            ->getResult();
83 83
             foreach ($entities as $entity) {
84 84
                 if ($entity instanceof NodeInterface) {
85 85
                     self::$deferred[$class][$entity->getId()] = $entity;
Please login to merge, or discard this patch.
src/Extension/EndpointNotValidException.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
      */
18 18
     public function __construct(string $endpoint, array $registeredEndpoints)
19 19
     {
20
-        $message  = sprintf(
20
+        $message = sprintf(
21 21
             '"%s" is not a valid configured endpoint, use one of the following endpoints: [%s]',
22 22
             $endpoint,
23 23
             implode($registeredEndpoints, ',')
Please login to merge, or discard this patch.
src/EventListener/GraphQL/NodeDeferredListener.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@
 block discarded – undo
58 58
 
59 59
             $event->setValue(
60 60
                 new Deferred(
61
-                    function () use ($value) {
61
+                    function() use ($value) {
62 62
                         $this->deferredBuffer->loadBuffer();
63 63
 
64 64
                         return $this->deferredBuffer->getLoadedEntity($value);
Please login to merge, or discard this patch.
src/Filter/Resolver/DoctrineORMFilterResolver.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@
 block discarded – undo
64 64
     /**
65 65
      * @inheritDoc
66 66
      */
67
-    public function resolve(ExecutableDefinitionInterface $executableDefinition,ObjectDefinitionInterface $node, Endpoint $endpoint): array
67
+    public function resolve(ExecutableDefinitionInterface $executableDefinition, ObjectDefinitionInterface $node, Endpoint $endpoint): array
68 68
     {
69 69
         $class = $node->getClass();
70 70
         $filters = [];
Please login to merge, or discard this patch.
src/Filter/Common/NodeFilter.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -70,10 +70,10 @@
 block discarded – undo
70 70
                 $paramName = sprintf('%s_ids_%s', $column, mt_rand());
71 71
                 if ($condition->getOp() === NodeComparisonOperatorType::IN) {
72 72
                     $qb->andWhere(sprintf(':%s MEMBER OF %s.%s', $paramName, $alias, $column))
73
-                       ->setParameter($paramName, $ids);
73
+                        ->setParameter($paramName, $ids);
74 74
                 } else {
75 75
                     $qb->andWhere(sprintf(':%s NOT MEMBER OF %s.%s', $paramName, $alias, $column))
76
-                       ->setParameter($paramName, $ids);
76
+                        ->setParameter($paramName, $ids);
77 77
                 }
78 78
                 break;
79 79
         }
Please login to merge, or discard this patch.
src/Type/Definition/ObjectDefinitionType.php 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -32,13 +32,13 @@
 block discarded – undo
32 32
             [
33 33
                 'name' => $definition->getName(),
34 34
                 'description' => $definition->getDescription(),
35
-                'fields' => function () use ($definition) {
35
+                'fields' => function() use ($definition) {
36 36
                     return GraphQLBuilder::resolveFields($definition);
37 37
                 },
38
-                'interfaces' => function () use ($definition) {
38
+                'interfaces' => function() use ($definition) {
39 39
                     return $this->resolveInterfaces($definition);
40 40
                 },
41
-                'resolveField' => function ($root, array $args, ResolverContext $context, ResolveInfo $resolveInfo) use ($definition) {
41
+                'resolveField' => function($root, array $args, ResolverContext $context, ResolveInfo $resolveInfo) use ($definition) {
42 42
                     $resolver = new ObjectFieldResolver($this->container);
43 43
                     $context = ContextBuilder::create($context->getEndpoint())
44 44
                                              ->setRoot($root)
Please login to merge, or discard this 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/Type/Definition/InputObjectDefinitionType.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -46,10 +46,10 @@
 block discarded – undo
46 46
             [
47 47
                 'name' => $definition->getName(),
48 48
                 'description' => $definition->getDescription(),
49
-                'fields' => function () use ($definition) {
49
+                'fields' => function() use ($definition) {
50 50
                     return GraphQLBuilder::resolveFields($definition);
51 51
                 },
52
-                'resolveField' => function ($root, array $args, ResolverContext $context, ResolveInfo $resolveInfo) use ($definition) {
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 55
                                              ->setRoot($root)
Please login to merge, or discard this 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/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.