@@ -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 | |
@@ -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 | |
@@ -25,7 +25,6 @@ |
||
| 25 | 25 | |
| 26 | 26 | /** |
| 27 | 27 | * Get the description of a method from the doc block |
| 28 | - * @param ReflectionMethod $method |
|
| 29 | 28 | * @return string|null |
| 30 | 29 | */ |
| 31 | 30 | public function getMethodDescription(): ?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 | |
@@ -27,7 +27,7 @@ discard block |
||
| 27 | 27 | * @param ReflectionMethod $method |
| 28 | 28 | * @return string|null |
| 29 | 29 | */ |
| 30 | - public function getMethodDescription(): ?string |
|
| 30 | + public function getMethodDescription(): ? string |
|
| 31 | 31 | { |
| 32 | 32 | // Remove the comment markers |
| 33 | 33 | $description = preg_replace('~\*/$~', '', $this->comment); |
@@ -47,7 +47,7 @@ discard block |
||
| 47 | 47 | * @param ReflectionParameter $param |
| 48 | 48 | * @return string|null |
| 49 | 49 | */ |
| 50 | - public function getParameterDescription(ReflectionParameter $param): ?string |
|
| 50 | + public function getParameterDescription(ReflectionParameter $param): ? string |
|
| 51 | 51 | { |
| 52 | 52 | $name = preg_quote($param->getName()); |
| 53 | 53 | |
@@ -63,7 +63,7 @@ discard block |
||
| 63 | 63 | * @param ReflectionParameter $param |
| 64 | 64 | * @return string|null |
| 65 | 65 | */ |
| 66 | - public function getParameterType(ReflectionParameter $param): ?string |
|
| 66 | + public function getParameterType(ReflectionParameter $param): ? string |
|
| 67 | 67 | { |
| 68 | 68 | $name = preg_quote($param->getName()); |
| 69 | 69 | |
@@ -78,7 +78,7 @@ discard block |
||
| 78 | 78 | * Get the return type |
| 79 | 79 | * @return string|null |
| 80 | 80 | */ |
| 81 | - public function getReturnType(): ?string |
|
| 81 | + public function getReturnType(): ? string |
|
| 82 | 82 | { |
| 83 | 83 | if (preg_match('~@return\h+(\H+)(\h|\n)~', $this->comment, $m)) { |
| 84 | 84 | return trim($m[1]); |
@@ -66,7 +66,7 @@ |
||
| 66 | 66 | * Return the getter/isser method if any valid one exists |
| 67 | 67 | * @param mixed $source |
| 68 | 68 | * @param string $name |
| 69 | - * @return string |
|
| 69 | + * @return ReflectionMethod|null |
|
| 70 | 70 | */ |
| 71 | 71 | private function getGetter($source, string $name): ?ReflectionMethod |
| 72 | 72 | { |
@@ -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 | |
@@ -37,7 +37,7 @@ discard block |
||
| 37 | 37 | * @param string $fieldName |
| 38 | 38 | * @return mixed |
| 39 | 39 | */ |
| 40 | - private function resolveObject($source, ?array $args, string $fieldName) |
|
| 40 | + private function resolveObject($source, ? array $args, string $fieldName) |
|
| 41 | 41 | { |
| 42 | 42 | $getter = $this->getGetter($source, $fieldName); |
| 43 | 43 | if ($getter) { |
@@ -68,7 +68,7 @@ discard block |
||
| 68 | 68 | * @param string $name |
| 69 | 69 | * @return string |
| 70 | 70 | */ |
| 71 | - private function getGetter($source, string $name): ?ReflectionMethod |
|
| 71 | + private function getGetter($source, string $name): ? ReflectionMethod |
|
| 72 | 72 | { |
| 73 | 73 | if (!preg_match('~^(is|has)[A-Z]~', $name)) { |
| 74 | 74 | $name = 'get' . ucfirst($name); |
@@ -91,7 +91,7 @@ discard block |
||
| 91 | 91 | * @param array $args |
| 92 | 92 | * @return array |
| 93 | 93 | */ |
| 94 | - private function orderArguments(ReflectionMethod $method, ?array $args): array |
|
| 94 | + private function orderArguments(ReflectionMethod $method, ? array $args) : array |
|
| 95 | 95 | { |
| 96 | 96 | $result = []; |
| 97 | 97 | foreach ($method->getParameters() as $param) { |
@@ -39,7 +39,7 @@ |
||
| 39 | 39 | * Serializes an internal value to include in a response. |
| 40 | 40 | * |
| 41 | 41 | * @param mixed $value |
| 42 | - * @return mixed |
|
| 42 | + * @return string |
|
| 43 | 43 | */ |
| 44 | 44 | public function serialize($value) |
| 45 | 45 | { |
@@ -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\Definition; |
| 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 | |