Passed
Pull Request — master (#62)
by Adrien
02:55
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.
tests/Blog/Model/User.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -161,7 +161,7 @@  discard block
 block discarded – undo
161 161
             return $this->posts;
162 162
         }
163 163
 
164
-        return $this->posts->filter(fn (Post $post) => $post->getStatus() === $status);
164
+        return $this->posts->filter(fn(Post $post) => $post->getStatus() === $status);
165 165
     }
166 166
 
167 167
     /**
@@ -169,7 +169,7 @@  discard block
 block discarded – undo
169 169
      */
170 170
     public function getPostsWithIds(array $ids): Collection
171 171
     {
172
-        return $this->posts->filter(fn (Post $post) => in_array($post->getId(), $ids, true));
172
+        return $this->posts->filter(fn(Post $post) => in_array($post->getId(), $ids, true));
173 173
     }
174 174
 
175 175
     public function setManager(?self $manager): void
Please login to merge, or discard this patch.
src/Definition/Operator/GroupOperatorType.php 5 patches
Indentation   +1 added lines, -5 removed lines patch added patch discarded remove patch
@@ -34,8 +34,4 @@
 block discarded – undo
34 34
 
35 35
     public function getDqlCondition(UniqueNameFactory $uniqueNameFactory, ClassMetadata $metadata, QueryBuilder $queryBuilder, string $alias, string $field, ?array $args): ?string
36 36
     {
37
-        $queryBuilder->addGroupBy($alias . '.' . $field);
38
-
39
-        return null;
40
-    }
41
-}
37
+        $queryBuilder->addGroupBy($alias . '.' . $field
42 38
\ No newline at end of file
Please login to merge, or discard this patch.
Switch Indentation   +1 added lines, -5 removed lines patch added patch discarded remove patch
@@ -34,8 +34,4 @@
 block discarded – undo
34 34
 
35 35
     public function getDqlCondition(UniqueNameFactory $uniqueNameFactory, ClassMetadata $metadata, QueryBuilder $queryBuilder, string $alias, string $field, ?array $args): ?string
36 36
     {
37
-        $queryBuilder->addGroupBy($alias . '.' . $field);
38
-
39
-        return null;
40
-    }
41
-}
37
+        $queryBuilder->addGroupBy($alias . '.' . $field
42 38
\ No newline at end of file
Please login to merge, or discard this patch.
Spacing   +1 added lines, -5 removed lines patch added patch discarded remove patch
@@ -34,8 +34,4 @@
 block discarded – undo
34 34
 
35 35
     public function getDqlCondition(UniqueNameFactory $uniqueNameFactory, ClassMetadata $metadata, QueryBuilder $queryBuilder, string $alias, string $field, ?array $args): ?string
36 36
     {
37
-        $queryBuilder->addGroupBy($alias . '.' . $field);
38
-
39
-        return null;
40
-    }
41
-}
37
+        $queryBuilder->addGroupBy($alias . '.' . $field
42 38
\ No newline at end of file
Please login to merge, or discard this patch.
Braces   +1 added lines, -5 removed lines patch added patch discarded remove patch
@@ -34,8 +34,4 @@
 block discarded – undo
34 34
 
35 35
     public function getDqlCondition(UniqueNameFactory $uniqueNameFactory, ClassMetadata $metadata, QueryBuilder $queryBuilder, string $alias, string $field, ?array $args): ?string
36 36
     {
37
-        $queryBuilder->addGroupBy($alias . '.' . $field);
38
-
39
-        return null;
40
-    }
41
-}
37
+        $queryBuilder->addGroupBy($alias . '.' . $field
42 38
\ No newline at end of file
Please login to merge, or discard this patch.
Upper-Lower-Casing   +1 added lines, -5 removed lines patch added patch discarded remove patch
@@ -34,8 +34,4 @@
 block discarded – undo
34 34
 
35 35
     public function getDqlCondition(UniqueNameFactory $uniqueNameFactory, ClassMetadata $metadata, QueryBuilder $queryBuilder, string $alias, string $field, ?array $args): ?string
36 36
     {
37
-        $queryBuilder->addGroupBy($alias . '.' . $field);
38
-
39
-        return null;
40
-    }
41
-}
37
+        $queryBuilder->addGroupBy($alias . '.' . $field
42 38
\ No newline at end of file
Please login to merge, or discard this patch.
src/Factory/Type/FilterGroupJoinTypeFactory.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
         $type = new InputObjectType([
28 28
             'name' => $typeName,
29 29
             'description' => 'Type to specify join tables in a filter',
30
-            'fields' => fn (): array => $this->getJoinsFields($className),
30
+            'fields' => fn(): array => $this->getJoinsFields($className),
31 31
         ]);
32 32
 
33 33
         return $type;
Please login to merge, or discard this patch.
tests/DocBlockReaderTest.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
     /**
33 33
      * @dataProvider providerGetMethodDescription
34 34
      */
35
-    public function testGetMethodDescription(string|false $comment, ?string $expected): void
35
+    public function testGetMethodDescription(string | false $comment, ?string $expected): void
36 36
     {
37 37
         $reader = $this->create($comment);
38 38
         $actual = $reader->getMethodDescription();
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
     /**
55 55
      * @dataProvider providerGetParameterDescription
56 56
      */
57
-    public function testGetParameterDescription(string|false $comment, string $parameterName, ?string $expected): void
57
+    public function testGetParameterDescription(string | false $comment, string $parameterName, ?string $expected): void
58 58
     {
59 59
         $reader = $this->create($comment);
60 60
         $parameter = $this->createParameter($parameterName);
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
     /**
77 77
      * @dataProvider providerGetParameterType
78 78
      */
79
-    public function testGetParameterType(string|false $comment, string $parameterName, ?string $expected): void
79
+    public function testGetParameterType(string | false $comment, string $parameterName, ?string $expected): void
80 80
     {
81 81
         $reader = $this->create($comment);
82 82
         $parameter = $this->createParameter($parameterName);
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
     /**
101 101
      * @dataProvider providerGetReturnType
102 102
      */
103
-    public function testGetReturnType(string|false $comment, ?string $expected): void
103
+    public function testGetReturnType(string | false $comment, ?string $expected): void
104 104
     {
105 105
         $reader = $this->create($comment);
106 106
         $actual = $reader->getReturnType();
@@ -116,17 +116,17 @@  discard block
 block discarded – undo
116 116
         ];
117 117
     }
118 118
 
119
-    private function create(string|false $comment): DocBlockReader
119
+    private function create(string | false $comment): DocBlockReader
120 120
     {
121 121
         $method = new class($comment) extends ReflectionMethod {
122
-            private string|false $comment;
122
+            private string | false $comment;
123 123
 
124
-            public function __construct(string|false $comment)
124
+            public function __construct(string | false $comment)
125 125
             {
126 126
                 $this->comment = $comment;
127 127
             }
128 128
 
129
-            public function getDocComment(): string|false
129
+            public function getDocComment(): string | false
130 130
             {
131 131
                 return $this->comment;
132 132
             }
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.