@@ -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 |
@@ -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 |
@@ -68,8 +68,7 @@ |
||
68 | 68 | AccessorStrategyInterface $accessor, |
69 | 69 | EventDispatcherInterface $dispatcher = null, |
70 | 70 | ExpressionEvaluatorInterface $expressionEvaluator = null |
71 | - ) |
|
72 | - { |
|
71 | + ) { |
|
73 | 72 | $this->dispatcher = $dispatcher ?: new EventDispatcher(); |
74 | 73 | $this->metadataFactory = $metadataFactory; |
75 | 74 | $this->handlerRegistry = $handlerRegistry; |
@@ -189,7 +189,7 @@ |
||
189 | 189 | try { |
190 | 190 | $v = $this->visitor->visitProperty($propertyMetadata, $data); |
191 | 191 | $this->accessor->setValue($object, $v, $propertyMetadata); |
192 | - }catch (NotAcceptableException $e){ |
|
192 | + } catch (NotAcceptableException $e) { |
|
193 | 193 | |
194 | 194 | } |
195 | 195 | $this->context->popPropertyMetadata(); |