Completed
Branch master (185174)
by Adrien
04:13
created
src/FieldsConfigurationFactory.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -276,7 +276,7 @@
 block discarded – undo
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
      */
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 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;
6 6
 
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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) {
Please login to merge, or discard this patch.
src/ObjectTypeFactory.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -82,7 +82,7 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 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;
6 6
 
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/DefaultFieldResolver.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 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;
6 6
 
Please login to merge, or discard this patch.
src/Annotation/Field.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 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\Annotation;
6 6
 
Please login to merge, or discard this patch.
src/Annotation/Exclude.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 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\Annotation;
6 6
 
Please login to merge, or discard this patch.
src/Annotation/Argument.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 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\Annotation;
6 6
 
Please login to merge, or discard this patch.
src/Exception.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 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;
6 6
 
Please login to merge, or discard this patch.
src/Types.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 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;
6 6
 
Please login to merge, or discard this patch.