Completed
Pull Request — master (#13)
by Rafael
06:46
created
src/Subscription/SubscriptionManager.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
 
92 92
         array_walk_recursive(
93 93
             $data,
94
-            function (&$value, $key) {
94
+            function(&$value, $key) {
95 95
                 if (is_object($value)) {
96 96
                     throw new \RuntimeException(
97 97
                         sprintf('The object "%s" in key "%s" can\'t be part of publish data, only scalar values can be sent.', get_class($value), $key)
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
112 112
         $channels = array_keys($this->registry->getEndpoint()->getSubscriptionsResolvers());
113 113
         $this->pubSubHandler->consume(
114 114
             $channels,
115
-            function (SubscriptionMessage $message) use ($output, $debug) {
115
+            function(SubscriptionMessage $message) use ($output, $debug) {
116 116
                 /** @var Request $request */
117 117
                 $request = $message->getMeta()['request'];
118 118
                 $subscribedFilters = $message->getMeta()['arguments'] ?? [];
@@ -160,7 +160,7 @@  discard block
 block discarded – undo
160 160
     {
161 161
         array_walk_recursive(
162 162
             $data,
163
-            function (&$value) {
163
+            function(&$value) {
164 164
                 if ($value instanceof NodeInterface) {
165 165
                     $value = IDEncoder::encode($value);
166 166
                 }
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
@@ -117,7 +117,7 @@
 block discarded – undo
117 117
         try {
118 118
             $this->consumer->subscribe(
119 119
                 $channels,
120
-                function (\Redis $redis, $chan, $event) use ($dispatch) {
120
+                function(\Redis $redis, $chan, $event) use ($dispatch) {
121 121
                     while ($keys = $this->client->scan($iterator, "*$chan:*", 100)) {
122 122
                         [$filters, $data] = unserialize($event, [true]);
123 123
                         foreach ($keys as $key) {
Please login to merge, or discard this patch.
src/DependencyInjection/YnloGraphQLExtension.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@
 block discarded – undo
59 59
         $container->setParameter('graphql.namespaces', $config['namespaces'] ?? []);
60 60
         $container->setParameter('graphql.cors_config', $config['cors'] ?? []);
61 61
         $container->setParameter('graphql.graphiql', $config['graphiql'] ?? []);
62
-        $container->setParameter('graphql.graphiql_auth_jwt', $config['graphiql']['authentication']['provider']['jwt'] ?? []);//DEPRECATED
62
+        $container->setParameter('graphql.graphiql_auth_jwt', $config['graphiql']['authentication']['provider']['jwt'] ?? []); //DEPRECATED
63 63
         $container->setParameter('graphql.graphiql_auth_lexik_jwt', $config['graphiql']['authentication']['provider']['lexik_jwt'] ?? []);
64 64
         $container->setParameter('graphql.security.validation_rules', $config['security']['validation_rules'] ?? []);
65 65
         $container->setParameter('graphql.subscriptions.redis', $config['subscriptions']['redis'] ?? []);
Please login to merge, or discard this patch.
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.