@@ -205,15 +205,15 @@ |
||
| 205 | 205 | /** @var $metadata ClassMetadata */ |
| 206 | 206 | $metadata = $this->metadataFactory->getMetadataForClass($type['name']); |
| 207 | 207 | |
| 208 | - if ($metadata->usingExpression && !$this->expressionExclusionStrategy) { |
|
| 208 | + if ($metadata->usingExpression && ! $this->expressionExclusionStrategy) { |
|
| 209 | 209 | throw new ExpressionLanguageRequiredException("To use conditional exclude/expose in {$metadata->name} you must configure the expression language."); |
| 210 | 210 | } |
| 211 | 211 | |
| 212 | 212 | if ($context instanceof DeserializationContext && ! empty($metadata->discriminatorMap) && $type['name'] === $metadata->discriminatorBaseClass) { |
| 213 | 213 | try { |
| 214 | 214 | $metadata = $this->resolveMetadata($data, $metadata); |
| 215 | - } catch(\LogicException $e) { |
|
| 216 | - if($metadata->discriminatorStrictDeserialize) { |
|
| 215 | + } catch (\LogicException $e) { |
|
| 216 | + if ($metadata->discriminatorStrictDeserialize) { |
|
| 217 | 217 | throw $e; |
| 218 | 218 | } |
| 219 | 219 | } |