Passed
Push — dependabot/composer/doctrine/d... ( b7fdb9 )
by
unknown
12:36
created
src/Type/DateTimeImmutable.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
     public function parseLiteral(ASTNode $valueNode, array|null $variables = null): string
22 22
     {
23 23
         // @codeCoverageIgnoreStart
24
-        if (! $valueNode instanceof StringValueNode) {
24
+        if (!$valueNode instanceof StringValueNode) {
25 25
             throw new Error('Query error: Can only parse strings got: ' . $valueNode->kind, $valueNode);
26 26
         }
27 27
 
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
 
33 33
     public function parseValue(mixed $value): PHPDateTimeImmutable
34 34
     {
35
-        if (! is_string($value)) {
35
+        if (!is_string($value)) {
36 36
             throw new Error('datetime_immutable is not a string: ' . $value);
37 37
         }
38 38
 
Please login to merge, or discard this patch.
src/Attribute/Entity.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@
 block discarded – undo
10 10
 /**
11 11
  * Attribute to define an entity for GraphQL
12 12
  */
13
-#[Attribute(Attribute::TARGET_CLASS | Attribute::IS_REPEATABLE)]
13
+#[Attribute(Attribute::TARGET_CLASS|Attribute::IS_REPEATABLE)]
14 14
 final class Entity
15 15
 {
16 16
     use ExcludeFilters;
Please login to merge, or discard this patch.
src/Attribute/Field.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@
 block discarded – undo
10 10
 /**
11 11
  * Attribute to describe a field for GraphQL
12 12
  */
13
-#[Attribute(Attribute::TARGET_PROPERTY | Attribute::IS_REPEATABLE)]
13
+#[Attribute(Attribute::TARGET_PROPERTY|Attribute::IS_REPEATABLE)]
14 14
 class Field
15 15
 {
16 16
     use ExcludeFilters;
Please login to merge, or discard this patch.
src/Attribute/Association.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@
 block discarded – undo
10 10
 /**
11 11
  * Attribute to describe an association for GraphQL
12 12
  */
13
-#[Attribute(Attribute::TARGET_PROPERTY | Attribute::IS_REPEATABLE)]
13
+#[Attribute(Attribute::TARGET_PROPERTY|Attribute::IS_REPEATABLE)]
14 14
 class Association
15 15
 {
16 16
     use ExcludeFilters;
Please login to merge, or discard this patch.
src/Resolve/ResolveEntityFactory.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
 
35 35
     public function get(Entity $entity, string|null $eventName): Closure
36 36
     {
37
-        return function ($objectValue, array $args, $context, ResolveInfo $info) use ($entity, $eventName) {
37
+        return function($objectValue, array $args, $context, ResolveInfo $info) use ($entity, $eventName) {
38 38
             $entityClass        = $entity->getEntityClass();
39 39
             $queryBuilderFilter = new QueryBuilderFilter();
40 40
 
@@ -147,7 +147,7 @@  discard block
 block discarded – undo
147 147
         $itemCount = $paginator->count();
148 148
 
149 149
         // Rebuild paginator if needed
150
-        if ($paginationFields['last'] && ! $paginationFields['before']) {
150
+        if ($paginationFields['last'] && !$paginationFields['before']) {
151 151
             $offsetAndLimit['offset'] = $itemCount - $paginationFields['last'];
152 152
             $queryBuilder->setFirstResult($offsetAndLimit['offset']);
153 153
             $paginator = new Paginator($queryBuilder->getQuery());
@@ -161,7 +161,7 @@  discard block
 block discarded – undo
161 161
                 'cursor' => $cursors['last'],
162 162
             ];
163 163
 
164
-            if (! $cursors['first']) {
164
+            if (!$cursors['first']) {
165 165
                 $cursors['first'] = $cursors['last'];
166 166
             }
167 167
 
@@ -189,7 +189,7 @@  discard block
 block discarded – undo
189 189
 
190 190
         $limit = $this->metadata[$entity->getEntityClass()]['limit'];
191 191
 
192
-        if (! $limit) {
192
+        if (!$limit) {
193 193
             $limit = $this->config->getLimit();
194 194
         }
195 195
 
Please login to merge, or discard this patch.
src/Resolve/FieldResolver.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
46 46
          * For disabled hydrator cache, store only the last hydrator result and reuse for consecutive calls
47 47
          * then drop the cache if it doesn't hit.
48 48
          */
49
-        if (! $this->config->getUseHydratorCache()) {
49
+        if (!$this->config->getUseHydratorCache()) {
50 50
             if (isset($this->extractValues[$splObjectHash])) {
51 51
                 return $this->extractValues[$splObjectHash][$info->fieldName] ?? null;
52 52
             }
Please login to merge, or discard this patch.
src/Metadata/MetadataFactory.php 1 patch
Spacing   +4 added lines, -5 removed lines patch added patch discarded remove patch
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
 
96 96
             // Only one matching instance per group is allowed
97 97
             assert(
98
-                ! $entityInstance,
98
+                !$entityInstance,
99 99
                 'Duplicate attribute found for entity '
100 100
                 . $reflectionClass->getName() . ', group ' . $instance->getGroup(),
101 101
             );
@@ -112,8 +112,7 @@  discard block
 block discarded – undo
112 112
                 'excludeFilters' => Filters::toStringArray($instance->getExcludeFilters()),
113 113
                 'description' => $instance->getDescription(),
114 114
                 'typeName' => $instance->getTypeName()
115
-                    ? $this->appendGroupSuffix($instance->getTypeName()) :
116
-                    $this->getTypeName($reflectionClass->getName()),
115
+                    ? $this->appendGroupSuffix($instance->getTypeName()) : $this->getTypeName($reflectionClass->getName()),
117 116
             ];
118 117
         }
119 118
     }
@@ -139,7 +138,7 @@  discard block
 block discarded – undo
139 138
 
140 139
                 // Only one matching instance per group is allowed
141 140
                 assert(
142
-                    ! $fieldInstance,
141
+                    !$fieldInstance,
143 142
                     'Duplicate attribute found for field '
144 143
                     . $fieldName . ', group ' . $instance->getGroup(),
145 144
                 );
@@ -184,7 +183,7 @@  discard block
 block discarded – undo
184 183
 
185 184
                 // Only one matching instance per group is allowed
186 185
                 assert(
187
-                    ! $associationInstance,
186
+                    !$associationInstance,
188 187
                     'Duplicate attribute found for association '
189 188
                     . $associationName . ', group ' . $instance->getGroup(),
190 189
                 );
Please login to merge, or discard this patch.
src/Filter/Filters.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
     public static function fromArray(array $filters): array
89 89
     {
90 90
         $filters = array_map(
91
-            static function ($filter) {
91
+            static function($filter) {
92 92
                 return is_string($filter) ? Filters::from($filter) : $filter;
93 93
             },
94 94
             $filters,
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
     public static function toStringArray(array $filters): array
108 108
     {
109 109
         return array_map(
110
-            static function (Filters $filter) {
110
+            static function(Filters $filter) {
111 111
                 return $filter->value;
112 112
             },
113 113
             $filters,
Please login to merge, or discard this patch.
src/Attribute/ExcludeFilters.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
             $this->excludeFilters = array_udiff(
35 35
                 Filters::cases(),
36 36
                 $this->includeFilters,
37
-                static function (Filters $a1, Filters $a2) {
37
+                static function(Filters $a1, Filters $a2) {
38 38
                     return $a1->value <=> $a2->value;
39 39
                 },
40 40
             );
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
             $this->excludeFilters = array_uintersect(
43 43
                 Filters::cases(),
44 44
                 $this->excludeFilters,
45
-                static function (Filters $a1, Filters $a2) {
45
+                static function(Filters $a1, Filters $a2) {
46 46
                     return $a1->value <=> $a2->value;
47 47
                 },
48 48
             );
Please login to merge, or discard this patch.