@@ -57,8 +57,7 @@ |
||
57 | 57 | HandlerRegistryInterface $handlerRegistry, |
58 | 58 | EventDispatcherInterface $dispatcher = null, |
59 | 59 | ExpressionEvaluatorInterface $expressionEvaluator = null |
60 | - ) |
|
61 | - { |
|
60 | + ) { |
|
62 | 61 | $this->dispatcher = $dispatcher ?: new EventDispatcher(); |
63 | 62 | $this->metadataFactory = $metadataFactory; |
64 | 63 | $this->handlerRegistry = $handlerRegistry; |
@@ -95,8 +95,7 @@ |
||
95 | 95 | ExpressionEvaluatorInterface $expressionEvaluator = null, |
96 | 96 | SerializationContextFactoryInterface $serializationContextFactory = null, |
97 | 97 | DeserializationContextFactoryInterface $deserializationContextFactory = null |
98 | - ) |
|
99 | - { |
|
98 | + ) { |
|
100 | 99 | $this->factory = $factory; |
101 | 100 | $this->handlerRegistry = $handlerRegistry; |
102 | 101 | $this->objectConstructor = $objectConstructor; |
@@ -73,8 +73,7 @@ discard block |
||
73 | 73 | \DateTimeInterface $date, |
74 | 74 | array $type, |
75 | 75 | SerializationContext $context |
76 | - ) |
|
77 | - { |
|
76 | + ) { |
|
78 | 77 | if ($visitor instanceof XmlSerializationVisitor && false === $this->xmlCData) { |
79 | 78 | return $visitor->visitSimpleString($date->format($this->getFormat($type)), $type); |
80 | 79 | } |
@@ -97,8 +96,7 @@ discard block |
||
97 | 96 | \DateTimeImmutable $date, |
98 | 97 | array $type, |
99 | 98 | SerializationContext $context |
100 | - ) |
|
101 | - { |
|
99 | + ) { |
|
102 | 100 | return $this->serializeDateTimeInterface($visitor, $date, $type, $context); |
103 | 101 | } |
104 | 102 |