Skip to content

Commit c7b1d04

Browse files
committed
Fix CS
1 parent 1d2a560 commit c7b1d04

21 files changed

+36
-35
lines changed

Encoder/CsvEncoder.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ public function encode(mixed $data, string $format, array $context = []): string
127127
*
128128
* @param array $context
129129
*/
130-
public function supportsEncoding(string $format /*, array $context = [] */): bool
130+
public function supportsEncoding(string $format /* , array $context = [] */): bool
131131
{
132132
return self::FORMAT === $format;
133133
}
@@ -215,7 +215,7 @@ public function decode(string $data, string $format, array $context = []): mixed
215215
*
216216
* @param array $context
217217
*/
218-
public function supportsDecoding(string $format /*, array $context = [] */): bool
218+
public function supportsDecoding(string $format /* , array $context = [] */): bool
219219
{
220220
return self::FORMAT === $format;
221221
}

Encoder/DecoderInterface.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,10 @@ public function decode(string $data, string $format, array $context = []);
3939
/**
4040
* Checks whether the deserializer can decode from given format.
4141
*
42-
* @param string $format Format name
42+
* @param string $format Format name
4343
* @param array $context Options that decoders have access to
4444
*
4545
* @return bool
4646
*/
47-
public function supportsDecoding(string $format /*, array $context = [] */);
47+
public function supportsDecoding(string $format /* , array $context = [] */);
4848
}

Encoder/EncoderInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,5 +35,5 @@ public function encode(mixed $data, string $format, array $context = []): string
3535
* @param string $format Format name
3636
* @param array $context Options that normalizers/encoders have access to
3737
*/
38-
public function supportsEncoding(string $format /*, array $context = [] */): bool;
38+
public function supportsEncoding(string $format /* , array $context = [] */): bool;
3939
}

Encoder/JsonDecode.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ public function decode(string $data, string $format, array $context = []): mixed
9898
*
9999
* @param array $context
100100
*/
101-
public function supportsDecoding(string $format /*, array $context = [] */): bool
101+
public function supportsDecoding(string $format /* , array $context = [] */): bool
102102
{
103103
return JsonEncoder::FORMAT === $format;
104104
}

Encoder/JsonEncode.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public function encode(mixed $data, string $format, array $context = []): string
6060
*
6161
* @param array $context
6262
*/
63-
public function supportsEncoding(string $format /*, array $context = [] */): bool
63+
public function supportsEncoding(string $format /* , array $context = [] */): bool
6464
{
6565
return JsonEncoder::FORMAT === $format;
6666
}

Encoder/JsonEncoder.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public function decode(string $data, string $format, array $context = []): mixed
5050
*
5151
* @param array $context
5252
*/
53-
public function supportsEncoding(string $format /*, array $context = [] */): bool
53+
public function supportsEncoding(string $format /* , array $context = [] */): bool
5454
{
5555
return self::FORMAT === $format;
5656
}
@@ -60,7 +60,7 @@ public function supportsEncoding(string $format /*, array $context = [] */): boo
6060
*
6161
* @param array $context
6262
*/
63-
public function supportsDecoding(string $format /*, array $context = [] */): bool
63+
public function supportsDecoding(string $format /* , array $context = [] */): bool
6464
{
6565
return self::FORMAT === $format;
6666
}

Encoder/XmlEncoder.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ public function decode(string $data, string $format, array $context = []): mixed
169169
*
170170
* @param array $context
171171
*/
172-
public function supportsEncoding(string $format /*, array $context = [] */): bool
172+
public function supportsEncoding(string $format /* , array $context = [] */): bool
173173
{
174174
return self::FORMAT === $format;
175175
}
@@ -179,7 +179,7 @@ public function supportsEncoding(string $format /*, array $context = [] */): boo
179179
*
180180
* @param array $context
181181
*/
182-
public function supportsDecoding(string $format /*, array $context = [] */): bool
182+
public function supportsDecoding(string $format /* , array $context = [] */): bool
183183
{
184184
return self::FORMAT === $format;
185185
}

Encoder/YamlEncoder.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public function encode(mixed $data, string $format, array $context = []): string
7070
*
7171
* @param array $context
7272
*/
73-
public function supportsEncoding(string $format /*, array $context = [] */): bool
73+
public function supportsEncoding(string $format /* , array $context = [] */): bool
7474
{
7575
return self::FORMAT === $format || self::ALTERNATIVE_FORMAT === $format;
7676
}
@@ -90,7 +90,7 @@ public function decode(string $data, string $format, array $context = []): mixed
9090
*
9191
* @param array $context
9292
*/
93-
public function supportsDecoding(string $format /*, array $context = [] */): bool
93+
public function supportsDecoding(string $format /* , array $context = [] */): bool
9494
{
9595
return self::FORMAT === $format || self::ALTERNATIVE_FORMAT === $format;
9696
}

Normalizer/AbstractObjectNormalizer.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ public function __construct(ClassMetadataFactoryInterface $classMetadataFactory
138138
*
139139
* @param array $context
140140
*/
141-
public function supportsNormalization(mixed $data, string $format = null /*, array $context = [] */)
141+
public function supportsNormalization(mixed $data, string $format = null /* , array $context = [] */)
142142
{
143143
return \is_object($data) && !$data instanceof \Traversable;
144144
}
@@ -340,7 +340,7 @@ abstract protected function getAttributeValue(object $object, string $attribute,
340340
*
341341
* @param array $context
342342
*/
343-
public function supportsDenormalization(mixed $data, string $type, string $format = null /*, array $context = [] */)
343+
public function supportsDenormalization(mixed $data, string $type, string $format = null /* , array $context = [] */)
344344
{
345345
return class_exists($type) || (interface_exists($type, false) && $this->classDiscriminatorResolver && null !== $this->classDiscriminatorResolver->getMappingForClass($type));
346346
}
@@ -509,6 +509,7 @@ private function validateAndDenormalize(array $types, string $currentClass, stri
509509
if (is_numeric($data)) {
510510
return (float) $data;
511511
}
512+
512513
return match ($data) {
513514
'NaN' => \NAN,
514515
'INF' => \INF,

Normalizer/ConstraintViolationListNormalizer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ public function normalize(mixed $object, string $format = null, array $context =
109109
*
110110
* @param array $context
111111
*/
112-
public function supportsNormalization(mixed $data, string $format = null /*, array $context = [] */): bool
112+
public function supportsNormalization(mixed $data, string $format = null /* , array $context = [] */): bool
113113
{
114114
return $data instanceof ConstraintViolationListInterface;
115115
}

Normalizer/CustomNormalizer.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public function denormalize(mixed $data, string $type, string $format = null, ar
4848
* @param string $format The format being (de-)serialized from or into
4949
* @param array $context
5050
*/
51-
public function supportsNormalization(mixed $data, string $format = null /*, array $context = [] */): bool
51+
public function supportsNormalization(mixed $data, string $format = null /* , array $context = [] */): bool
5252
{
5353
return $data instanceof NormalizableInterface;
5454
}
@@ -61,7 +61,7 @@ public function supportsNormalization(mixed $data, string $format = null /*, arr
6161
* @param string $format The format being deserialized from
6262
* @param array $context
6363
*/
64-
public function supportsDenormalization(mixed $data, string $type, string $format = null /*, array $context = [] */): bool
64+
public function supportsDenormalization(mixed $data, string $type, string $format = null /* , array $context = [] */): bool
6565
{
6666
return is_subclass_of($type, DenormalizableInterface::class);
6767
}

Normalizer/DataUriNormalizer.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ public function normalize(mixed $object, string $format = null, array $context =
7676
*
7777
* @param array $context
7878
*/
79-
public function supportsNormalization(mixed $data, string $format = null /*, array $context = [] */): bool
79+
public function supportsNormalization(mixed $data, string $format = null /* , array $context = [] */): bool
8080
{
8181
return $data instanceof \SplFileInfo;
8282
}
@@ -122,7 +122,7 @@ public function denormalize(mixed $data, string $type, string $format = null, ar
122122
*
123123
* @param array $context
124124
*/
125-
public function supportsDenormalization(mixed $data, string $type, string $format = null /*, array $context = [] */): bool
125+
public function supportsDenormalization(mixed $data, string $type, string $format = null /* , array $context = [] */): bool
126126
{
127127
return isset(self::SUPPORTED_TYPES[$type]);
128128
}

Normalizer/DateIntervalNormalizer.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public function normalize(mixed $object, string $format = null, array $context =
5252
*
5353
* @param array $context
5454
*/
55-
public function supportsNormalization(mixed $data, string $format = null /*, array $context = [] */): bool
55+
public function supportsNormalization(mixed $data, string $format = null /* , array $context = [] */): bool
5656
{
5757
return $data instanceof \DateInterval;
5858
}
@@ -122,7 +122,7 @@ public function denormalize(mixed $data, string $type, string $format = null, ar
122122
*
123123
* @param array $context
124124
*/
125-
public function supportsDenormalization(mixed $data, string $type, string $format = null /*, array $context = [] */): bool
125+
public function supportsDenormalization(mixed $data, string $type, string $format = null /* , array $context = [] */): bool
126126
{
127127
return \DateInterval::class === $type;
128128
}

Normalizer/DateTimeNormalizer.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ public function normalize(mixed $object, string $format = null, array $context =
7474
*
7575
* @param array $context
7676
*/
77-
public function supportsNormalization(mixed $data, string $format = null /*, array $context = [] */): bool
77+
public function supportsNormalization(mixed $data, string $format = null /* , array $context = [] */): bool
7878
{
7979
return $data instanceof \DateTimeInterface;
8080
}
@@ -117,7 +117,7 @@ public function denormalize(mixed $data, string $type, string $format = null, ar
117117
*
118118
* @param array $context
119119
*/
120-
public function supportsDenormalization(mixed $data, string $type, string $format = null /*, array $context = [] */): bool
120+
public function supportsDenormalization(mixed $data, string $type, string $format = null /* , array $context = [] */): bool
121121
{
122122
return isset(self::SUPPORTED_TYPES[$type]);
123123
}

Normalizer/DateTimeZoneNormalizer.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public function normalize(mixed $object, string $format = null, array $context =
4141
*
4242
* @param array $context
4343
*/
44-
public function supportsNormalization(mixed $data, string $format = null /*, array $context = [] */): bool
44+
public function supportsNormalization(mixed $data, string $format = null /* , array $context = [] */): bool
4545
{
4646
return $data instanceof \DateTimeZone;
4747
}
@@ -69,7 +69,7 @@ public function denormalize(mixed $data, string $type, string $format = null, ar
6969
*
7070
* @param array $context
7171
*/
72-
public function supportsDenormalization(mixed $data, string $type, string $format = null /*, array $context = [] */): bool
72+
public function supportsDenormalization(mixed $data, string $type, string $format = null /* , array $context = [] */): bool
7373
{
7474
return \DateTimeZone::class === $type;
7575
}

Normalizer/DenormalizerInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,5 +56,5 @@ public function denormalize(mixed $data, string $type, string $format = null, ar
5656
*
5757
* @return bool
5858
*/
59-
public function supportsDenormalization(mixed $data, string $type, string $format = null /*, array $context = [] */);
59+
public function supportsDenormalization(mixed $data, string $type, string $format = null /* , array $context = [] */);
6060
}

Normalizer/GetSetMethodNormalizer.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ class GetSetMethodNormalizer extends AbstractObjectNormalizer
4141
*
4242
* @param array $context
4343
*/
44-
public function supportsNormalization(mixed $data, string $format = null /*, array $context = [] */): bool
44+
public function supportsNormalization(mixed $data, string $format = null /* , array $context = [] */): bool
4545
{
4646
return parent::supportsNormalization($data, $format) && $this->supports(\get_class($data));
4747
}
@@ -51,7 +51,7 @@ public function supportsNormalization(mixed $data, string $format = null /*, arr
5151
*
5252
* @param array $context
5353
*/
54-
public function supportsDenormalization(mixed $data, string $type, string $format = null /*, array $context = [] */): bool
54+
public function supportsDenormalization(mixed $data, string $type, string $format = null /* , array $context = [] */): bool
5555
{
5656
return parent::supportsDenormalization($data, $type, $format) && $this->supports($type);
5757
}

Normalizer/JsonSerializableNormalizer.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public function normalize(mixed $object, string $format = null, array $context =
4646
*
4747
* @param array $context
4848
*/
49-
public function supportsNormalization(mixed $data, string $format = null /*, array $context = [] */): bool
49+
public function supportsNormalization(mixed $data, string $format = null /* , array $context = [] */): bool
5050
{
5151
return $data instanceof \JsonSerializable;
5252
}
@@ -56,7 +56,7 @@ public function supportsNormalization(mixed $data, string $format = null /*, arr
5656
*
5757
* @param array $context
5858
*/
59-
public function supportsDenormalization(mixed $data, string $type, string $format = null /*, array $context = [] */): bool
59+
public function supportsDenormalization(mixed $data, string $type, string $format = null /* , array $context = [] */): bool
6060
{
6161
return false;
6262
}

Normalizer/NormalizerInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,5 +47,5 @@ public function normalize(mixed $object, string $format = null, array $context =
4747
*
4848
* @return bool
4949
*/
50-
public function supportsNormalization(mixed $data, string $format = null /*, array $context = [] */);
50+
public function supportsNormalization(mixed $data, string $format = null /* , array $context = [] */);
5151
}

Normalizer/ProblemNormalizer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ public function normalize(mixed $object, string $format = null, array $context =
7171
*
7272
* @param array $context
7373
*/
74-
public function supportsNormalization(mixed $data, string $format = null /*, array $context = [] */): bool
74+
public function supportsNormalization(mixed $data, string $format = null /* , array $context = [] */): bool
7575
{
7676
return $data instanceof FlattenException;
7777
}

Normalizer/PropertyNormalizer.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class PropertyNormalizer extends AbstractObjectNormalizer
3737
*
3838
* @param array $context
3939
*/
40-
public function supportsNormalization(mixed $data, string $format = null /*, array $context = [] */): bool
40+
public function supportsNormalization(mixed $data, string $format = null /* , array $context = [] */): bool
4141
{
4242
return parent::supportsNormalization($data, $format) && $this->supports(\get_class($data));
4343
}
@@ -47,7 +47,7 @@ public function supportsNormalization(mixed $data, string $format = null /*, arr
4747
*
4848
* @param array $context
4949
*/
50-
public function supportsDenormalization(mixed $data, string $type, string $format = null /*, array $context = [] */): bool
50+
public function supportsDenormalization(mixed $data, string $type, string $format = null /* , array $context = [] */): bool
5151
{
5252
return parent::supportsDenormalization($data, $type, $format) && $this->supports($type);
5353
}

0 commit comments

Comments
 (0)