Passed
Push — master ( 58d350...cb92bc )
by Adrien
24:21 queued 11:28
created
tests/TypesTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@
 block discarded – undo
72 72
                         'type' => Type::nonNull($types->getOutput(Post::class)),
73 73
                         'args' => [
74 74
                             'id' => Type::nonNull(Type::id()), // Use standard API when needed
75
-                            'input' => $types->getPartialInput(Post::class),  // Use automated InputObjectType for partial input for updates
75
+                            'input' => $types->getPartialInput(Post::class), // Use automated InputObjectType for partial input for updates
76 76
                         ],
77 77
                         'resolve' => function ($root, $args): void {
78 78
                             // update existing post and flush...
Please login to merge, or discard this patch.
src/Utils.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
      *
32 32
      * @param class-string $className
33 33
      */
34
-    public static function getOperatorTypeName(string $className, EnumType|ScalarType $type): string
34
+    public static function getOperatorTypeName(string $className, EnumType | ScalarType $type): string
35 35
     {
36 36
         return preg_replace('~Type$~', '', self::getTypeName($className)) . ucfirst($type->name);
37 37
     }
Please login to merge, or discard this patch.
src/Attribute/Field.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
18 18
 {
19 19
     public array $args = [];
20 20
 
21
-    public null|string|Type $type = null;
21
+    public null | string | Type $type = null;
22 22
 
23 23
     /**
24 24
      * @param null|string $name Can be used to alias the field
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
      */
27 27
     public function __construct(
28 28
         public ?string $name = null,
29
-        null|string $type = null,
29
+        null | string $type = null,
30 30
         public ?string $description = null,
31 31
     ) {
32 32
         $this->type = $type;
Please login to merge, or discard this patch.
src/Attribute/Reader/Reader.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
      *
54 54
      * @return null|T
55 55
      */
56
-    public function getAttribute(ReflectionClass|ReflectionProperty|ReflectionMethod|ReflectionParameter $element, string $attributeName): ?ApiAttribute
56
+    public function getAttribute(ReflectionClass | ReflectionProperty | ReflectionMethod | ReflectionParameter $element, string $attributeName): ?ApiAttribute
57 57
     {
58 58
         $attributes = $this->getAttributeInstances($element, $attributeName);
59 59
 
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
      *
68 68
      * @return T[]
69 69
      */
70
-    private function getAttributeInstances(ReflectionClass|ReflectionMethod|ReflectionParameter|ReflectionProperty $element, string $attributeName): array
70
+    private function getAttributeInstances(ReflectionClass | ReflectionMethod | ReflectionParameter | ReflectionProperty $element, string $attributeName): array
71 71
     {
72 72
         if (!is_subclass_of($attributeName, ApiAttribute::class)) {
73 73
             throw new Exception(self::class . ' cannot be used for attribute than are not part of `ecodev/graphql-doctrine`.');
Please login to merge, or discard this patch.
tests/DocBlockReaderTest.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
      */';
32 32
 
33 33
     #[DataProvider('providerGetMethodDescription')]
34
-    public function testGetMethodDescription(string|false $comment, ?string $expected): void
34
+    public function testGetMethodDescription(string | false $comment, ?string $expected): void
35 35
     {
36 36
         $reader = $this->create($comment);
37 37
         $actual = $reader->getMethodDescription();
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
     }
52 52
 
53 53
     #[DataProvider('providerGetParameterDescription')]
54
-    public function testGetParameterDescription(string|false $comment, string $parameterName, ?string $expected): void
54
+    public function testGetParameterDescription(string | false $comment, string $parameterName, ?string $expected): void
55 55
     {
56 56
         $reader = $this->create($comment);
57 57
         $parameter = $this->createParameter($parameterName);
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
     }
72 72
 
73 73
     #[DataProvider('providerGetParameterType')]
74
-    public function testGetParameterType(string|false $comment, string $parameterName, ?string $expected): void
74
+    public function testGetParameterType(string | false $comment, string $parameterName, ?string $expected): void
75 75
     {
76 76
         $reader = $this->create($comment);
77 77
         $parameter = $this->createParameter($parameterName);
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
     }
94 94
 
95 95
     #[DataProvider('providerGetReturnType')]
96
-    public function testGetReturnType(string|false $comment, ?string $expected): void
96
+    public function testGetReturnType(string | false $comment, ?string $expected): void
97 97
     {
98 98
         $reader = $this->create($comment);
99 99
         $actual = $reader->getReturnType();
@@ -109,14 +109,14 @@  discard block
 block discarded – undo
109 109
         ];
110 110
     }
111 111
 
112
-    private function create(string|false $comment): DocBlockReader
112
+    private function create(string | false $comment): DocBlockReader
113 113
     {
114 114
         $method = new class($comment) extends ReflectionMethod {
115
-            public function __construct(private readonly string|false $comment)
115
+            public function __construct(private readonly string | false $comment)
116 116
             {
117 117
             }
118 118
 
119
-            public function getDocComment(): string|false
119
+            public function getDocComment(): string | false
120 120
             {
121 121
                 return $this->comment;
122 122
             }
Please login to merge, or discard this patch.
tests/DefaultFieldResolverTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@
 block discarded – undo
54 54
     }
55 55
 
56 56
     #[DataProvider('providerDefaultFieldResolver')]
57
-    public function testDefaultFieldResolver(mixed $expected, array|object $source, string $fieldName, array $args = []): void
57
+    public function testDefaultFieldResolver(mixed $expected, array | object $source, string $fieldName, array $args = []): void
58 58
     {
59 59
         $resolver = new DefaultFieldResolver();
60 60
         $fieldDefinition = new FieldDefinition(['name' => $fieldName, 'type' => Type::boolean()]);
Please login to merge, or discard this patch.
src/Factory/AbstractFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@
 block discarded – undo
49 49
      *  - `MyType[]|null`
50 50
      *  - `Collection<MyType>`
51 51
      */
52
-    final protected function getTypeFromPhpDeclaration(ReflectionClass $class, null|string|Type $typeDeclaration, bool $isEntityId = false): null|Type
52
+    final protected function getTypeFromPhpDeclaration(ReflectionClass $class, null | string | Type $typeDeclaration, bool $isEntityId = false): null | Type
53 53
     {
54 54
         if ($typeDeclaration === null || $typeDeclaration instanceof Type) {
55 55
             return $typeDeclaration;
Please login to merge, or discard this patch.