@@ -276,7 +276,7 @@ |
||
276 | 276 | /** |
277 | 277 | * Complete args configuration from existing type hints |
278 | 278 | * @param ReflectionMethod $method |
279 | - * @param array $argsFromAnnotations |
|
279 | + * @param Annotation\GraphQL\Doctrine\Annotation\Argument[] $argsFromAnnotations |
|
280 | 280 | * @throws Exception |
281 | 281 | * @return array |
282 | 282 | */ |
@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace GraphQL\Doctrine; |
6 | 6 | |
@@ -108,7 +108,7 @@ discard block |
||
108 | 108 | * @param ReflectionMethod $method |
109 | 109 | * @return string|null |
110 | 110 | */ |
111 | - private function getFieldDescription(ReflectionMethod $method): ?string |
|
111 | + private function getFieldDescription(ReflectionMethod $method): ? string |
|
112 | 112 | { |
113 | 113 | $comment = $method->getDocComment(); |
114 | 114 | |
@@ -128,7 +128,7 @@ discard block |
||
128 | 128 | return $comment; |
129 | 129 | } |
130 | 130 | |
131 | - private function getArgumentDescription(ReflectionParameter $param): ?string |
|
131 | + private function getArgumentDescription(ReflectionParameter $param): ? string |
|
132 | 132 | { |
133 | 133 | $comment = $param->getDeclaringFunction()->getDocComment(); |
134 | 134 | $name = preg_quote($param->getName()); |
@@ -176,7 +176,7 @@ discard block |
||
176 | 176 | * @param string|null $typeDeclaration |
177 | 177 | * @return Type|null |
178 | 178 | */ |
179 | - private function phpDeclarationToInstance(?string $typeDeclaration): ?Type |
|
179 | + private function phpDeclarationToInstance(? string $typeDeclaration) : ? Type |
|
180 | 180 | { |
181 | 181 | if (!$typeDeclaration) { |
182 | 182 | return null; |
@@ -238,7 +238,7 @@ discard block |
||
238 | 238 | * @throws Exception |
239 | 239 | * @return Type|null |
240 | 240 | */ |
241 | - private function getTypeFromTypeHint(ReflectionMethod $method, string $fieldName): ?Type |
|
241 | + private function getTypeFromTypeHint(ReflectionMethod $method, string $fieldName): ? Type |
|
242 | 242 | { |
243 | 243 | $returnType = $method->getReturnType(); |
244 | 244 | if (!$returnType) { |
@@ -82,7 +82,7 @@ |
||
82 | 82 | |
83 | 83 | /** |
84 | 84 | * Get the description of a class from the docblock |
85 | - * @param ReflectionMethod $method |
|
85 | + * @param ReflectionClass $method |
|
86 | 86 | * @return string|null |
87 | 87 | */ |
88 | 88 | private function getDescription(ReflectionClass $method): ?string |
@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace GraphQL\Doctrine; |
6 | 6 | |
@@ -46,7 +46,7 @@ discard block |
||
46 | 46 | $typeName = $this->getTypeName($class); |
47 | 47 | $description = $this->getDescription($class); |
48 | 48 | |
49 | - $fieldGetter = function () use ($className): array { |
|
49 | + $fieldGetter = function() use ($className): array { |
|
50 | 50 | $factory = new FieldsConfigurationFactory($this->types, $this->entityManager); |
51 | 51 | $configuration = $factory->create($className); |
52 | 52 | |
@@ -85,7 +85,7 @@ discard block |
||
85 | 85 | * @param ReflectionMethod $method |
86 | 86 | * @return string|null |
87 | 87 | */ |
88 | - private function getDescription(ReflectionClass $method): ?string |
|
88 | + private function getDescription(ReflectionClass $method): ? string |
|
89 | 89 | { |
90 | 90 | $comment = $method->getDocComment(); |
91 | 91 |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace GraphQL\Doctrine; |
6 | 6 |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace GraphQL\Doctrine\Annotation; |
6 | 6 |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace GraphQL\Doctrine\Annotation; |
6 | 6 |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace GraphQL\Doctrine\Annotation; |
6 | 6 |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace GraphQL\Doctrine; |
6 | 6 |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace GraphQL\Doctrine; |
6 | 6 |