@@ -239,7 +239,7 @@ |
||
| 239 | 239 | public function sendRequest($method, $uri, array $parameters = [], array $files = [], array $server = [], $content = null, $changeHistory = true) |
| 240 | 240 | { |
| 241 | 241 | set_error_handler( |
| 242 | - function ($level, $message, $errFile, $errLine) { |
|
| 242 | + function($level, $message, $errFile, $errLine) { |
|
| 243 | 243 | if ($this->deprecationAdviser) { |
| 244 | 244 | $this->deprecationAdviser->addWarning($message, $errFile, $errLine); |
| 245 | 245 | } |
@@ -74,7 +74,7 @@ discard block |
||
| 74 | 74 | ->beforeNormalization() |
| 75 | 75 | ->ifString() |
| 76 | 76 | ->then( |
| 77 | - function ($v) { |
|
| 77 | + function($v) { |
|
| 78 | 78 | return [$v]; |
| 79 | 79 | } |
| 80 | 80 | ) |
@@ -87,14 +87,14 @@ discard block |
||
| 87 | 87 | ->beforeNormalization() |
| 88 | 88 | ->ifString() |
| 89 | 89 | ->then( |
| 90 | - function ($v) { |
|
| 90 | + function($v) { |
|
| 91 | 91 | return [$v]; |
| 92 | 92 | } |
| 93 | 93 | ) |
| 94 | 94 | ->end() |
| 95 | 95 | ->validate() |
| 96 | 96 | ->ifTrue( |
| 97 | - function (array $value) { |
|
| 97 | + function(array $value) { |
|
| 98 | 98 | foreach ($value as $val) { |
| 99 | 99 | try { |
| 100 | 100 | preg_match($val, null); |
@@ -111,14 +111,14 @@ discard block |
||
| 111 | 111 | ->beforeNormalization() |
| 112 | 112 | ->ifString() |
| 113 | 113 | ->then( |
| 114 | - function ($v) { |
|
| 114 | + function($v) { |
|
| 115 | 115 | return [$v]; |
| 116 | 116 | } |
| 117 | 117 | ) |
| 118 | 118 | ->end() |
| 119 | 119 | ->validate() |
| 120 | 120 | ->ifTrue( |
| 121 | - function (array $value) { |
|
| 121 | + function(array $value) { |
|
| 122 | 122 | foreach ($value as $val) { |
| 123 | 123 | try { |
| 124 | 124 | preg_match($val, null); |
@@ -136,7 +136,7 @@ discard block |
||
| 136 | 136 | ->useAttributeAsKey('name') |
| 137 | 137 | ->validate() |
| 138 | 138 | ->ifTrue( |
| 139 | - function ($v) { |
|
| 139 | + function($v) { |
|
| 140 | 140 | return array_key_exists('default', $v); |
| 141 | 141 | } |
| 142 | 142 | )->thenInvalid('"default" can\'t be used as endpoint name, the system internally use this endpoint name to store the entire schema.') |
@@ -148,7 +148,7 @@ discard block |
||
| 148 | 148 | ->beforeNormalization() |
| 149 | 149 | ->ifString() |
| 150 | 150 | ->then( |
| 151 | - function ($v) { |
|
| 151 | + function($v) { |
|
| 152 | 152 | return preg_split('/\s*,\s*/', $v); |
| 153 | 153 | } |
| 154 | 154 | ) |
@@ -165,7 +165,7 @@ discard block |
||
| 165 | 165 | ->beforeNormalization() |
| 166 | 166 | ->ifString() |
| 167 | 167 | ->then( |
| 168 | - function ($v) { |
|
| 168 | + function($v) { |
|
| 169 | 169 | return preg_split('/\s*,\s*/', $v); |
| 170 | 170 | } |
| 171 | 171 | ) |
@@ -59,7 +59,7 @@ |
||
| 59 | 59 | */ |
| 60 | 60 | protected function execute(InputInterface $input, OutputInterface $output) |
| 61 | 61 | { |
| 62 | - $this->errorManager->clear();//force reload |
|
| 62 | + $this->errorManager->clear(); //force reload |
|
| 63 | 63 | $errors = $this->errorManager->all(); |
| 64 | 64 | |
| 65 | 65 | $result = $output; |
@@ -183,7 +183,7 @@ |
||
| 183 | 183 | |
| 184 | 184 | $result->setErrorFormatter([$formatter, 'format']); |
| 185 | 185 | $result->setErrorsHandler( |
| 186 | - function ($errors) use ($handler, $formatter) { |
|
| 186 | + function($errors) use ($handler, $formatter) { |
|
| 187 | 187 | return $handler->handle($errors, $formatter, $this->getDebugMode()); |
| 188 | 188 | } |
| 189 | 189 | ); |
@@ -84,7 +84,7 @@ |
||
| 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 | } |
@@ -17,7 +17,7 @@ |
||
| 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, ',') |
@@ -58,7 +58,7 @@ |
||
| 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); |
@@ -64,7 +64,7 @@ |
||
| 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 = []; |
@@ -32,13 +32,13 @@ |
||
| 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) |