Passed
Push — master ( 383648...c60c96 )
by Andrey
50s queued 13s
created
src/ArgumentResolver/Middleware/ReflectionParameterMiddleware.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
 
28 28
     public function process(mixed $argument, ArgumentResolverInterface $argumentResolver): array
29 29
     {
30
-        if (! $argument instanceof ReflectionParameter) {
30
+        if (!$argument instanceof ReflectionParameter) {
31 31
             return $argumentResolver->resolve($argument);
32 32
         }
33 33
 
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
             return new LazyParserType($attribute->type, $attribute->mode ?? 0, $this->typeRegistry);
85 85
         }
86 86
 
87
-        if (! $parameter->hasType()) {
87
+        if (!$parameter->hasType()) {
88 88
             throw new CantResolveGraphQLTypeException(sprintf(
89 89
                 'Can\'t resolve GraphQL type for argument "%s"',
90 90
                 $parameter->getName()
Please login to merge, or discard this patch.
src/InputObjectFieldResolver/Middleware/ReflectionPropertyMiddleware.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
 
30 30
     public function process(mixed $field, InputObjectFieldResolverInterface $fieldResolver): Webonyx\InputObjectField
31 31
     {
32
-        if (! $field instanceof ReflectionProperty) {
32
+        if (!$field instanceof ReflectionProperty) {
33 33
             return $fieldResolver->resolve($field);
34 34
         }
35 35
 
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
             return new LazyParserType($attribute->type, $attribute->mode ?? 0, $this->typeRegistry);
84 84
         }
85 85
 
86
-        if (! $property->hasType()) {
86
+        if (!$property->hasType()) {
87 87
             throw new CantResolveGraphQLTypeException(sprintf(
88 88
                 'Can\'t resolve GraphQL type for field "%s"',
89 89
                 $property->getName()
Please login to merge, or discard this patch.
src/Common/LazyParserType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
 
28 28
     public function __invoke(): Webonyx\Type
29 29
     {
30
-        if (! $this->typeRegistry->has($this->type)) {
30
+        if (!$this->typeRegistry->has($this->type)) {
31 31
             return $this->getType(Parser::parseType($this->type));
32 32
         }
33 33
 
Please login to merge, or discard this patch.
Middleware/ObjectFieldByReflectionPropertyMiddleware.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
 
30 30
     public function process(mixed $field, ObjectFieldResolverInterface $fieldResolver): Webonyx\FieldDefinition
31 31
     {
32
-        if (! $field instanceof ReflectionProperty) {
32
+        if (!$field instanceof ReflectionProperty) {
33 33
             return $fieldResolver->resolve($field);
34 34
         }
35 35
 
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
             return new LazyParserType($attribute->type, $attribute->mode ?? 0, $this->typeRegistry);
81 81
         }
82 82
 
83
-        if (! $property->hasType()) {
83
+        if (!$property->hasType()) {
84 84
             throw new CantResolveGraphQLTypeException(sprintf(
85 85
                 'Can\'t resolve GraphQL type for field "%s"',
86 86
                 $property->getName()
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
 
97 97
     private function getFieldResolver(ReflectionProperty $property): callable
98 98
     {
99
-        return static function ($object) use ($property): mixed {
99
+        return static function($object) use ($property): mixed {
100 100
             return $property->getValue($object);
101 101
         };
102 102
     }
Please login to merge, or discard this patch.
Middleware/AbstractFieldByReflectionMethodMiddleware.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
 
35 35
     public function process(mixed $field, ObjectFieldResolverInterface $fieldResolver): Webonyx\FieldDefinition
36 36
     {
37
-        if (! $field instanceof ReflectionMethod) {
37
+        if (!$field instanceof ReflectionMethod) {
38 38
             return $fieldResolver->resolve($field);
39 39
         }
40 40
 
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
             return new LazyParserType($attribute->type, $attribute->mode ?? 0, $this->typeRegistry);
90 90
         }
91 91
 
92
-        if (! $method->hasReturnType()) {
92
+        if (!$method->hasReturnType()) {
93 93
             throw new CantResolveGraphQLTypeException(sprintf(
94 94
                 'Can\'t resolve GraphQL type for field "%s"',
95 95
                 $method->getName()
Please login to merge, or discard this patch.