@@ -38,7 +38,7 @@ |
||
| 38 | 38 | */ |
| 39 | 39 | public function __construct(ServiceProcessor $processor = null) |
| 40 | 40 | { |
| 41 | - $this->processor = $processor ? : new ServiceProcessor(); |
|
| 41 | + $this->processor = $processor ?: new ServiceProcessor(); |
|
| 42 | 42 | } |
| 43 | 43 | |
| 44 | 44 | public function getConfigKey() |
@@ -37,13 +37,13 @@ |
||
| 37 | 37 | [ |
| 38 | 38 | 'name' => $definition->getName(), |
| 39 | 39 | 'description' => $definition->getDescription(), |
| 40 | - 'fields' => function () use ($definition) { |
|
| 40 | + 'fields' => function() use ($definition) { |
|
| 41 | 41 | return GraphQLBuilder::resolveFields($definition); |
| 42 | 42 | }, |
| 43 | - 'interfaces' => function () { |
|
| 43 | + 'interfaces' => function() { |
|
| 44 | 44 | return $this->resolveInterfaces(); |
| 45 | 45 | }, |
| 46 | - 'resolveField' => function ($root, array $args, $context, ResolveInfo $resolveInfo) { |
|
| 46 | + 'resolveField' => function($root, array $args, $context, ResolveInfo $resolveInfo) { |
|
| 47 | 47 | $resolver = new ObjectFieldResolver( |
| 48 | 48 | $this->container, |
| 49 | 49 | $this->endpoint, |
@@ -43,10 +43,10 @@ |
||
| 43 | 43 | [ |
| 44 | 44 | 'name' => $definition->getName(), |
| 45 | 45 | 'description' => $definition->getDescription(), |
| 46 | - 'fields' => function () use ($definition) { |
|
| 46 | + 'fields' => function() use ($definition) { |
|
| 47 | 47 | return GraphQLBuilder::resolveFields($definition); |
| 48 | 48 | }, |
| 49 | - 'resolveType' => function ($value) { |
|
| 49 | + 'resolveType' => function($value) { |
|
| 50 | 50 | return TypeUtil::resolveObjectType($this->endpoint, $value); |
| 51 | 51 | }, |
| 52 | 52 | ] |
@@ -82,7 +82,7 @@ discard block |
||
| 82 | 82 | * |
| 83 | 83 | * @return null|string |
| 84 | 84 | */ |
| 85 | - public function getClassForType(string $type):?string |
|
| 85 | + public function getClassForType(string $type): ?string |
|
| 86 | 86 | { |
| 87 | 87 | if (isset($this->typeMap[$type])) { |
| 88 | 88 | return $this->typeMap[$type]; |
@@ -110,7 +110,7 @@ discard block |
||
| 110 | 110 | { |
| 111 | 111 | $types = array_filter( |
| 112 | 112 | $this->typeMap, |
| 113 | - function ($val) use ($class) { |
|
| 113 | + function($val) use ($class) { |
|
| 114 | 114 | return $val === $class; |
| 115 | 115 | } |
| 116 | 116 | ); |
@@ -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 | } |