@@ -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 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | namespace GraphQL\Doctrine\Factory; |
| 6 | 6 | |
@@ -23,7 +23,7 @@ discard block |
||
| 23 | 23 | $typeName = Utils::getInputTypeName($className); |
| 24 | 24 | $description = $this->getDescription($className); |
| 25 | 25 | |
| 26 | - $fieldGetter = function () use ($className): array { |
|
| 26 | + $fieldGetter = function() use ($className): array { |
|
| 27 | 27 | $factory = new InputFieldsConfigurationFactory($this->types, $this->entityManager); |
| 28 | 28 | $configuration = $factory->create($className); |
| 29 | 29 | |
@@ -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\Factory; |
| 6 | 6 | |
@@ -23,7 +23,7 @@ discard block |
||
| 23 | 23 | $typeName = Utils::getTypeName($className); |
| 24 | 24 | $description = $this->getDescription($className); |
| 25 | 25 | |
| 26 | - $fieldGetter = function () use ($className): array { |
|
| 26 | + $fieldGetter = function() use ($className): array { |
|
| 27 | 27 | $factory = new OutputFieldsConfigurationFactory($this->types, $this->entityManager); |
| 28 | 28 | $configuration = $factory->create($className); |
| 29 | 29 | |
@@ -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\Factory; |
| 6 | 6 | |
@@ -28,7 +28,7 @@ discard block |
||
| 28 | 28 | * @throws Exception |
| 29 | 29 | * @return array |
| 30 | 30 | */ |
| 31 | - protected function methodToConfiguration(ReflectionMethod $method): ?array |
|
| 31 | + protected function methodToConfiguration(ReflectionMethod $method): ? array |
|
| 32 | 32 | { |
| 33 | 33 | // First get user specified values |
| 34 | 34 | $field = $this->getFieldFromAnnotation($method); |
@@ -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\Factory; |
| 6 | 6 | |
@@ -63,7 +63,7 @@ discard block |
||
| 63 | 63 | * @param ReflectionMethod $method |
| 64 | 64 | * @return array |
| 65 | 65 | */ |
| 66 | - abstract protected function methodToConfiguration(ReflectionMethod $method): ?array; |
|
| 66 | + abstract protected function methodToConfiguration(ReflectionMethod $method): ? array; |
|
| 67 | 67 | |
| 68 | 68 | /** |
| 69 | 69 | * Create a configuration for all fields of Doctrine entity |
@@ -142,7 +142,7 @@ discard block |
||
| 142 | 142 | * @param bool $isEntityId |
| 143 | 143 | * @return Type|null |
| 144 | 144 | */ |
| 145 | - protected function getTypeFromPhpDeclaration(ReflectionMethod $method, ?string $typeDeclaration, bool $isEntityId = false): ?Type |
|
| 145 | + protected function getTypeFromPhpDeclaration(ReflectionMethod $method, ?string $typeDeclaration, bool $isEntityId = false) : ?Type |
|
| 146 | 146 | { |
| 147 | 147 | if (!$typeDeclaration) { |
| 148 | 148 | return null; |
@@ -310,7 +310,7 @@ discard block |
||
| 310 | 310 | * @param Type $type |
| 311 | 311 | * @return Type |
| 312 | 312 | */ |
| 313 | - protected function nonNullIfHasDefault(ReflectionParameter $param, ?Type $type): ?Type |
|
| 313 | + protected function nonNullIfHasDefault(ReflectionParameter $param, ?Type $type) : ?Type |
|
| 314 | 314 | { |
| 315 | 315 | if ($type instanceof NonNull && $param->isDefaultValueAvailable()) { |
| 316 | 316 | return $type->getWrappedType(); |
@@ -128,12 +128,14 @@ |
||
| 128 | 128 | if (is_a($driver, MappingDriverChain::class)) { |
| 129 | 129 | $drivers = $driver->getDrivers(); |
| 130 | 130 | foreach ($drivers as $driver) { |
| 131 | - if (is_a($driver, AnnotationDriver::class)) |
|
| 132 | - return $driver->getReader(); |
|
| 131 | + if (is_a($driver, AnnotationDriver::class)) { |
|
| 132 | + return $driver->getReader(); |
|
| 133 | + } |
|
| 133 | 134 | } |
| 134 | 135 | } |
| 135 | - if (method_exists($driver, 'getReader')) |
|
| 136 | - return $driver->getReader(); |
|
| 136 | + if (method_exists($driver, 'getReader')) { |
|
| 137 | + return $driver->getReader(); |
|
| 138 | + } |
|
| 137 | 139 | return new AnnotationReader(); |
| 138 | 140 | } |
| 139 | 141 | |
@@ -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\Factory; |
| 6 | 6 | |