Passed
Push — master ( ca30a3...fcf319 )
by Rafael
07:05
created
src/Type/SubscriptionType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
     {
23 23
         $defaults = [
24 24
             'name' => 'Subscription',
25
-            'fields' => function () {
25
+            'fields' => function() {
26 26
                 $subscriptions = [];
27 27
                 foreach ($this->endpoint->allSubscriptions() as $subscription) {
28 28
                     $subscriptions[$subscription->getName()] = $this->getQueryConfig($subscription);
Please login to merge, or discard this patch.
src/Type/Definition/UnionDefinitionType.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
             [
32 32
                 'name' => $definition->getName(),
33 33
                 'description' => $definition->getDescription(),
34
-                'types' => function () use ($definition) {
34
+                'types' => function() use ($definition) {
35 35
                     $types = [];
36 36
                     $unionTypes = $definition->getTypes();
37 37
 
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
 
71 71
                     return $types;
72 72
                 },
73
-                'resolveType' => function ($value) {
73
+                'resolveType' => function($value) {
74 74
                     $type = TypeUtil::resolveObjectType($this->endpoint, $value);
75 75
                     if (!$type) {
76 76
                         throw new \RuntimeException(sprintf('Can`t resolve a valid type for object of class %s.', get_class($value)));
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/Subscription/PubSub/RedisPubSubHandler.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -143,7 +143,7 @@
 block discarded – undo
143 143
         $this->consumer->setOption(\Redis::OPT_PREFIX, $this->prefix);
144 144
         $this->consumer->subscribe(
145 145
             $channels,
146
-            function (\Redis $redis, $chan, $event) use ($dispatch) {
146
+            function(\Redis $redis, $chan, $event) use ($dispatch) {
147 147
                 $iterator = null;
148 148
                 while ($iterator !== 0) {
149 149
                     while ($keys = $this->client->scan($iterator, "*$chan:*", 100)) {
Please login to merge, or discard this patch.
src/OrderBy/Common/OrderBySimpleField.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
 
28 28
         // use alias
29 29
         $orderByFields = FieldOptionsHelper::normalize($context->getParentContext()->getDefinition()->getMeta('pagination')['order_by'] ?? ['*']);
30
-        if (isset($orderByFields[$column])){
30
+        if (isset($orderByFields[$column])) {
31 31
             $column = $orderByFields[$column];
32 32
         }
33 33
 
Please login to merge, or discard this patch.
src/EventListener/GraphQL/AccessControlListener.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -86,9 +86,9 @@
 block discarded – undo
86 86
                 }
87 87
 
88 88
                 // check access on interfaces
89
-                if ($objectDefinition instanceof ObjectDefinition){
90
-                    foreach ($objectDefinition->getInterfaces() as $interface){
91
-                        $interfaceDef =$event->getContext()->getEndpoint()->getType($interface);
89
+                if ($objectDefinition instanceof ObjectDefinition) {
90
+                    foreach ($objectDefinition->getInterfaces() as $interface) {
91
+                        $interfaceDef = $event->getContext()->getEndpoint()->getType($interface);
92 92
                         if ($this->accessControlChecker->isControlled($interfaceDef)
93 93
                             && !$this->accessControlChecker->isGranted($interfaceDef, $event->getContext()->getRoot())
94 94
                         ) {
Please login to merge, or discard this patch.
src/Type/QueryType.php 2 patches
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.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
     {
47 47
         $defaults = [
48 48
             'name' => 'Query',
49
-            'fields' => function () {
49
+            'fields' => function() {
50 50
                 $queries = [];
51 51
                 foreach ($this->endpoint->allQueries() as $query) {
52 52
                     $queries[$query->getName()] = $this->getQueryConfig($query);
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
 
75 75
 
76 76
         $container = $this->container;
77
-        $config['resolve'] = function ($root, array $args, ResolverContext $context, ResolveInfo $resolveInfo) use ($container, $query) {
77
+        $config['resolve'] = function($root, array $args, ResolverContext $context, ResolveInfo $resolveInfo) use ($container, $query) {
78 78
             $eventDispatcher = $this->container->get(EventDispatcherInterface::class);
79 79
 
80 80
             $context = ContextBuilder::create($this->endpoint)
Please login to merge, or discard this patch.