Passed
Push — master ( 0b86b2...26cfdb )
by Rafael
13:17
created
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.
src/Command/MercureHubCommand.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -51,8 +51,8 @@
 block discarded – undo
51 51
     protected function configure()
52 52
     {
53 53
         $this->setName('graphql:mercure:start')
54
-             ->setDescription('Start mercure HUB server. Define mercure settings using env variables with MERCURE_* prefix in your .env file')
55
-             ->addArgument('mercure', InputArgument::REQUIRED, 'Mercure binary');
54
+                ->setDescription('Start mercure HUB server. Define mercure settings using env variables with MERCURE_* prefix in your .env file')
55
+                ->addArgument('mercure', InputArgument::REQUIRED, 'Mercure binary');
56 56
     }
57 57
 
58 58
     /**
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -79,7 +79,7 @@
 block discarded – undo
79 79
         $subscribersByTopics = [];
80 80
 
81 81
         $process->run(
82
-            static function ($type, $msg) use ($output, &$subscribersByTopics, $subscriptionManager) {
82
+            static function($type, $msg) use ($output, &$subscribersByTopics, $subscriptionManager) {
83 83
                 $output->writeln($msg);
84 84
 
85 85
                 $connected = strpos($msg, '"New subscriber"') !== false;
Please login to merge, or discard this patch.
src/YnloGraphQLBundle.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -58,11 +58,11 @@
 block discarded – undo
58 58
         $container->registerForAutoconfiguration(InputFieldTypeGuesser::class)->addTag('graphql.input_type_guesser');
59 59
         $container->registerForAutoconfiguration(FilterResolverInterface::class)->addTag('graphql.filter_resolver');
60 60
         $container->registerForAutoconfiguration(FilterInterface::class)
61
-                  ->addTag('graphql.list_filter')
62
-                  ->setPublic(true);
61
+                    ->addTag('graphql.list_filter')
62
+                    ->setPublic(true);
63 63
 
64 64
         $container->registerForAutoconfiguration(SubscriptionAwareInterface::class)
65
-                  ->addMethodCall('setPublisher', [new Reference(Publisher::class)]);
65
+                    ->addMethodCall('setPublisher', [new Reference(Publisher::class)]);
66 66
     }
67 67
 
68 68
     /**
Please login to merge, or discard this patch.