apply more cs rules for php-cs

This commit is contained in:
2023-10-17 13:27:03 +02:00
parent 0b0cbed9db
commit bc2041cbdd
1485 changed files with 8169 additions and 9620 deletions

View File

@@ -33,8 +33,7 @@ class PhonenumberNormalizer implements ContextAwareNormalizerInterface, Denormal
/**
* @param string|null $data
* @param mixed $type
* @param null|mixed $format
* @param mixed|null $format
*
* @throws UnexpectedValueException
*/
@@ -51,7 +50,7 @@ class PhonenumberNormalizer implements ContextAwareNormalizerInterface, Denormal
}
}
public function normalize($object, ?string $format = null, array $context = []): string
public function normalize($object, string $format = null, array $context = []): string
{
if ('docgen' === $format && null === $object) {
return '';
@@ -65,7 +64,7 @@ class PhonenumberNormalizer implements ContextAwareNormalizerInterface, Denormal
return 'libphonenumber\PhoneNumber' === $type;
}
public function supportsNormalization($data, ?string $format = null, array $context = []): bool
public function supportsNormalization($data, string $format = null, array $context = []): bool
{
if ($data instanceof PhoneNumber && 'json' === $format) {
return true;