Skip to content

Commit 476862e

Browse files
committed
Refactor method signatures for readability
The function signatures for `supportsDenormalization` in both `JWESerializer` and `JWSSerializer` classes have been reformatted for better reading. The arguments of these functions are now vertically aligned, which will enhance the code's readability and maintainability in the long term.
1 parent 64ac3a7 commit 476862e

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

src/Bundle/Serializer/JWESerializer.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,12 @@ public function getSupportedTypes(?string $format): array
3636
}
3737

3838
#[Override]
39-
public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool
40-
{
39+
public function supportsDenormalization(
40+
mixed $data,
41+
string $type,
42+
?string $format = null,
43+
array $context = []
44+
): bool {
4145
return $type === JWE::class
4246
&& class_exists(JWESerializerManager::class)
4347
&& $this->formatSupported($format);

src/Bundle/Serializer/JWSSerializer.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,12 @@ public function getSupportedTypes(?string $format): array
3636
}
3737

3838
#[Override]
39-
public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool
40-
{
39+
public function supportsDenormalization(
40+
mixed $data,
41+
string $type,
42+
?string $format = null,
43+
array $context = []
44+
): bool {
4145
return $type === JWS::class
4246
&& class_exists(JWSSerializerManager::class)
4347
&& $this->formatSupported($format);

0 commit comments

Comments
 (0)