Completed
Push — master ( e0da03...82ad8f )
by Adrien
05:49
created
src/Definition/EntityIDType.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
      *
55 55
      * @param mixed $value
56 56
      *
57
-     * @return mixed A Doctrine entity
57
+     * @return EntityID A Doctrine entity
58 58
      */
59 59
     public function parseValue($value)
60 60
     {
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
      *
69 69
      * @param \GraphQL\Language\AST\Node $valueNode
70 70
      *
71
-     * @return mixed
71
+     * @return EntityID
72 72
      */
73 73
     public function parseLiteral($valueNode)
74 74
     {
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
      *
83 83
      * @param string $id
84 84
      *
85
-     * @return mixed entity
85
+     * @return EntityID entity
86 86
      */
87 87
     private function createEntityID(string $id)
88 88
     {
Please login to merge, or discard this patch.
src/Factory/AbstractFieldsConfigurationFactory.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
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
 
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
      *
68 68
      * @return null|array
69 69
      */
70
-    abstract protected function methodToConfiguration(ReflectionMethod $method): ?array;
70
+    abstract protected function methodToConfiguration(ReflectionMethod $method): ? array;
71 71
 
72 72
     /**
73 73
      * Create a configuration for all fields of Doctrine entity
@@ -152,7 +152,7 @@  discard block
 block discarded – undo
152 152
      *
153 153
      * @return null|Type
154 154
      */
155
-    protected function getTypeFromPhpDeclaration(ReflectionMethod $method, ?string $typeDeclaration, bool $isEntityId = false): ?Type
155
+    protected function getTypeFromPhpDeclaration(ReflectionMethod $method, ?string $typeDeclaration, bool $isEntityId = false) : ?Type
156 156
     {
157 157
         if (!$typeDeclaration) {
158 158
             return null;
@@ -284,7 +284,7 @@  discard block
 block discarded – undo
284 284
      *
285 285
      * @throws Exception
286 286
      */
287
-    protected function throwIfArray(ReflectionParameter $param, ?string $type): void
287
+    protected function throwIfArray(ReflectionParameter $param, ?string $type) : void
288 288
     {
289 289
         if ($type === 'array') {
290 290
             throw new Exception('The parameter `$' . $param->getName() . '` on method ' . $this->getMethodFullName($param->getDeclaringFunction()) . ' is type hinted as `array` and is not overridden via `@API\Argument` annotation. Either change the type hint or specify the type with `@API\Argument` annotation.');
@@ -340,7 +340,7 @@  discard block
 block discarded – undo
340 340
      *
341 341
      * @return Type
342 342
      */
343
-    protected function nonNullIfHasDefault(ReflectionParameter $param, ?Type $type): ?Type
343
+    protected function nonNullIfHasDefault(ReflectionParameter $param, ?Type $type) : ?Type
344 344
     {
345 345
         if ($type instanceof NonNull && $param->isDefaultValueAvailable()) {
346 346
             return $type->getWrappedType();
@@ -358,7 +358,7 @@  discard block
 block discarded – undo
358 358
      *
359 359
      * @throws Exception
360 360
      */
361
-    protected function throwIfNotInputType(ReflectionParameter $param, ?Type $type, string $annotation): void
361
+    protected function throwIfNotInputType(ReflectionParameter $param, ?Type $type, string $annotation) : void
362 362
     {
363 363
         if (!$type) {
364 364
             throw new Exception('Could not find type for parameter `$' . $param->name . '` for method ' . $this->getMethodFullName($param->getDeclaringFunction()) . '. Either type hint the parameter, or specify the type with `@API\\' . $annotation . '` annotation.');
Please login to merge, or discard this patch.