mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2026-02-01 14:07:16 +00:00
apply more cs rules for php-cs
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user