Completed
Pull Request — master (#2)
by
unknown
01:57
created
src/Factory/InputFieldsConfigurationFactory.php 1 patch
Spacing   +2 added lines, -2 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
 
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
      * @param ReflectionMethod $method
26 26
      * @return array
27 27
      */
28
-    protected function methodToConfiguration(ReflectionMethod $method): ?array
28
+    protected function methodToConfiguration(ReflectionMethod $method): ? array
29 29
     {
30 30
         // Silently ignore setter with anything than exactly 1 parameter
31 31
         $params = $method->getParameters();
Please login to merge, or discard this patch.
src/DefaultFieldResolver.php 1 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
 
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
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) {
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
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) {
Please login to merge, or discard this patch.
src/DocBlockReader.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/Factory/OutputFieldsConfigurationFactory.php 1 patch
Spacing   +2 added lines, -2 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
 
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
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);
Please login to merge, or discard this patch.
src/Factory/AbstractFieldsConfigurationFactory.php 1 patch
Spacing   +4 added lines, -4 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
 
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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();
Please login to merge, or discard this patch.
src/Factory/AbstractTypeFactory.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\Factory;
6 6
 
Please login to merge, or discard this patch.