@@ -46,10 +46,10 @@ |
||
46 | 46 | [ |
47 | 47 | 'name' => $definition->getName(), |
48 | 48 | 'description' => $definition->getDescription(), |
49 | - 'fields' => function () { |
|
49 | + 'fields' => function() { |
|
50 | 50 | return $this->resolveFields(); |
51 | 51 | }, |
52 | - 'resolveType' => function ($value) { |
|
52 | + 'resolveType' => function($value) { |
|
53 | 53 | foreach ($this->definition->getImplementors() as $implementor) { |
54 | 54 | $implementorDef = $this->definitionManager->getType($implementor); |
55 | 55 | //ClassUtils::getClass is required to avoid proxies |
@@ -39,7 +39,7 @@ |
||
39 | 39 | [ |
40 | 40 | 'name' => $definition->getName(), |
41 | 41 | 'description' => $definition->getDescription(), |
42 | - 'fields' => function () { |
|
42 | + 'fields' => function() { |
|
43 | 43 | return $this->resolveFields(); |
44 | 44 | }, |
45 | 45 | 'resolveField' => new ObjectFieldResolver($definition), |
@@ -47,14 +47,14 @@ |
||
47 | 47 | [ |
48 | 48 | 'name' => $definition->getName(), |
49 | 49 | 'description' => $definition->getDescription(), |
50 | - 'fields' => function () { |
|
50 | + 'fields' => function() { |
|
51 | 51 | return $this->resolveFields(); |
52 | 52 | }, |
53 | - 'interfaces' => function () { |
|
53 | + 'interfaces' => function() { |
|
54 | 54 | return $this->resolveInterfaces(); |
55 | 55 | }, |
56 | 56 | 'resolveField' => new ObjectFieldResolver($definition), |
57 | - 'isTypeOf' => function ($value, $context, ResolveInfo $info) { |
|
57 | + 'isTypeOf' => function($value, $context, ResolveInfo $info) { |
|
58 | 58 | //TODO: implement this |
59 | 59 | }, |
60 | 60 | ] |
@@ -24,7 +24,7 @@ |
||
24 | 24 | { |
25 | 25 | $defaults = [ |
26 | 26 | 'name' => 'Mutation', |
27 | - 'fields' => function () { |
|
27 | + 'fields' => function() { |
|
28 | 28 | $mutations = []; |
29 | 29 | foreach ($this->manager->allMutations() as $query) { |
30 | 30 | $mutations[$query->getName()] = $this->getQueryConfig($query); |
@@ -36,7 +36,7 @@ |
||
36 | 36 | { |
37 | 37 | $defaults = [ |
38 | 38 | 'name' => 'Query', |
39 | - 'fields' => function () { |
|
39 | + 'fields' => function() { |
|
40 | 40 | $queries = []; |
41 | 41 | foreach ($this->manager->allQueries() as $query) { |
42 | 42 | $queries[$query->getName()] = $this->getQueryConfig($query); |
@@ -118,7 +118,7 @@ |
||
118 | 118 | $field->setNonNullList($this->isTypeNonNullList($arg->type)); |
119 | 119 | $inputType->prependField($field); |
120 | 120 | } |
121 | - $annotation->args = [];//clear |
|
121 | + $annotation->args = []; //clear |
|
122 | 122 | } |
123 | 123 | |
124 | 124 | if (null !== $inputType) { |
@@ -113,7 +113,7 @@ discard block |
||
113 | 113 | * |
114 | 114 | * @return ConstraintViolation |
115 | 115 | */ |
116 | - public function setPropertyPath(?string $path): ConstraintViolation |
|
116 | + public function setPropertyPath(?string $path) : ConstraintViolation |
|
117 | 117 | { |
118 | 118 | $this->propertyPath = $path; |
119 | 119 | |
@@ -194,7 +194,7 @@ discard block |
||
194 | 194 | * |
195 | 195 | * @return ConstraintViolation |
196 | 196 | */ |
197 | - public function setPlural(?int $plural): ConstraintViolation |
|
197 | + public function setPlural(?int $plural) : ConstraintViolation |
|
198 | 198 | { |
199 | 199 | $this->plural = $plural; |
200 | 200 |
@@ -65,7 +65,7 @@ |
||
65 | 65 | /** |
66 | 66 | * @return null|string |
67 | 67 | */ |
68 | - public function getClientMutationId():?string |
|
68 | + public function getClientMutationId(): ?string |
|
69 | 69 | { |
70 | 70 | return $this->clientMutationId; |
71 | 71 | } |
@@ -25,7 +25,7 @@ discard block |
||
25 | 25 | * |
26 | 26 | * @return DeprecateInterface |
27 | 27 | */ |
28 | - public function setDeprecationReason(?string $deprecationReason): DeprecateInterface |
|
28 | + public function setDeprecationReason(?string $deprecationReason) : DeprecateInterface |
|
29 | 29 | { |
30 | 30 | $this->deprecationReason = $deprecationReason; |
31 | 31 | |
@@ -43,7 +43,7 @@ discard block |
||
43 | 43 | /** |
44 | 44 | * @return string |
45 | 45 | */ |
46 | - public function getDeprecationReason():?string |
|
46 | + public function getDeprecationReason(): ?string |
|
47 | 47 | { |
48 | 48 | return $this->deprecationReason; |
49 | 49 | } |