| @@ -72,8 +72,7 @@ discard block | ||
| 72 | 72 | \DateTimeInterface $date, | 
| 73 | 73 | array $type, | 
| 74 | 74 | Context $context | 
| 75 | - ) | |
| 76 | -    { | |
| 75 | +    ) { | |
| 77 | 76 |          if ($visitor instanceof XmlSerializationVisitor && false === $this->xmlCData) { | 
| 78 | 77 | return $visitor->visitSimpleString($date->format($this->getFormat($type)), $type, $context); | 
| 79 | 78 | } | 
| @@ -96,8 +95,7 @@ discard block | ||
| 96 | 95 | \DateTimeImmutable $date, | 
| 97 | 96 | array $type, | 
| 98 | 97 | Context $context | 
| 99 | - ) | |
| 100 | -    { | |
| 98 | +    ) { | |
| 101 | 99 | return $this->serializeDateTimeInterface($visitor, $date, $type, $context); | 
| 102 | 100 | } | 
| 103 | 101 | |
| @@ -82,8 +82,7 @@ | ||
| 82 | 82 | ObjectConstructorInterface $objectConstructor, | 
| 83 | 83 | EventDispatcherInterface $dispatcher = null, | 
| 84 | 84 | ExpressionEvaluatorInterface $expressionEvaluator = null | 
| 85 | - ) | |
| 86 | -    { | |
| 85 | +    ) { | |
| 87 | 86 | $this->dispatcher = $dispatcher; | 
| 88 | 87 | $this->metadataFactory = $metadataFactory; | 
| 89 | 88 | $this->handlerRegistry = $handlerRegistry; | 
| @@ -83,8 +83,7 @@ | ||
| 83 | 83 | EventDispatcherInterface $dispatcher = null, | 
| 84 | 84 | TypeParser $typeParser = null, | 
| 85 | 85 | ExpressionEvaluatorInterface $expressionEvaluator = null | 
| 86 | - ) | |
| 87 | -    { | |
| 86 | +    ) { | |
| 88 | 87 | $this->factory = $factory; | 
| 89 | 88 | $this->handlerRegistry = $handlerRegistry; | 
| 90 | 89 | $this->objectConstructor = $objectConstructor; | 
| @@ -24,7 +24,6 @@ | ||
| 24 | 24 | use JMS\Serializer\Annotation\AccessType; | 
| 25 | 25 | use JMS\Serializer\Annotation\Discriminator; | 
| 26 | 26 | use JMS\Serializer\Annotation\Exclude; | 
| 27 | -use JMS\Serializer\Annotation\ExcludeIf; | |
| 28 | 27 | use JMS\Serializer\Annotation\ExclusionPolicy; | 
| 29 | 28 | use JMS\Serializer\Annotation\Expose; | 
| 30 | 29 | use JMS\Serializer\Annotation\Groups; | 
| @@ -122,7 +122,7 @@ | ||
| 122 | 122 | private function getErrorMessage(FormError $error) | 
| 123 | 123 |      { | 
| 124 | 124 | |
| 125 | -        if ($this->translator === null){ | |
| 125 | +        if ($this->translator === null) { | |
| 126 | 126 | return $error->getMessage(); | 
| 127 | 127 | } | 
| 128 | 128 | |
| @@ -23,7 +23,6 @@ | ||
| 23 | 23 | use JMS\Serializer\Metadata\ClassMetadata; | 
| 24 | 24 | use JMS\Serializer\Metadata\PropertyMetadata; | 
| 25 | 25 | use JMS\Serializer\Naming\AdvancedNamingStrategyInterface; | 
| 26 | -use JMS\Serializer\Naming\PropertyNamingStrategyInterface; | |
| 27 | 26 | |
| 28 | 27 | /** | 
| 29 | 28 | * XmlSerializationVisitor. | 
| @@ -22,7 +22,6 @@ | ||
| 22 | 22 | use JMS\Serializer\Metadata\ClassMetadata; | 
| 23 | 23 | use JMS\Serializer\Metadata\PropertyMetadata; | 
| 24 | 24 | use JMS\Serializer\Naming\AdvancedNamingStrategyInterface; | 
| 25 | -use JMS\Serializer\Naming\PropertyNamingStrategyInterface; | |
| 26 | 25 | |
| 27 | 26 | /** | 
| 28 | 27 | * Generic Deserialization Visitor. | 
| @@ -25,8 +25,7 @@ | ||
| 25 | 25 | array $metadataDirs, | 
| 26 | 26 | Reader $reader, | 
| 27 | 27 | ClassMetadataUpdaterInterface $propertyUpdater = null | 
| 28 | - ) | |
| 29 | -    { | |
| 28 | +    ) { | |
| 30 | 29 | $driver = \call_user_func($this->callback, $metadataDirs, $reader, $propertyUpdater); | 
| 31 | 30 |          if (!$driver instanceof DriverInterface) { | 
| 32 | 31 |              throw new \LogicException('The callback must return an instance of DriverInterface.'); | 
| @@ -16,8 +16,7 @@ | ||
| 16 | 16 | array $metadataDirs, | 
| 17 | 17 | Reader $annotationReader, | 
| 18 | 18 | ClassMetadataUpdaterInterface $propertyUpdater = null | 
| 19 | - ) | |
| 20 | -    { | |
| 19 | +    ) { | |
| 21 | 20 | $annotationDriver = new AnnotationDriver($annotationReader, $propertyUpdater); | 
| 22 | 21 |          if (empty($metadataDirs)) { | 
| 23 | 22 | return $annotationDriver; |