@@ -66,7 +66,7 @@ |
||
66 | 66 | |
67 | 67 | public function getClassMetadata($className): TransferMetadata |
68 | 68 | { |
69 | - if(is_object($className)) { |
|
69 | + if (is_object($className)) { |
|
70 | 70 | $className = get_class($className); |
71 | 71 | } |
72 | 72 |
@@ -13,9 +13,9 @@ |
||
13 | 13 | */ |
14 | 14 | trait MetadataTrait |
15 | 15 | { |
16 | - /** |
|
17 | - * @var MetadataFactoryInterface |
|
18 | - */ |
|
16 | + /** |
|
17 | + * @var MetadataFactoryInterface |
|
18 | + */ |
|
19 | 19 | private $metadataFactory; |
20 | 20 | |
21 | 21 | private function getIdValue($object) |
@@ -60,7 +60,7 @@ discard block |
||
60 | 60 | $object, |
61 | 61 | TransferManagerInterface $transferManager |
62 | 62 | ): callable { |
63 | - return function () use ($metadata, $name, $object, $transferManager) { |
|
63 | + return function() use ($metadata, $name, $object, $transferManager) { |
|
64 | 64 | /* @var $propertyMetadata PropertyMetadata */ |
65 | 65 | $propertyMetadata = $metadata->propertyMetadata[$name]; |
66 | 66 | $type = $propertyMetadata->getParsedType(); |
@@ -83,7 +83,7 @@ discard block |
||
83 | 83 | $belongsTo = $propertyMetadata->getAnnotation(BelongsTo::class); |
84 | 84 | |
85 | 85 | if ($belongsTo instanceof BelongsTo && empty($propertyMetadata->getValue($object))) { |
86 | - $idValue = $metadata->propertyMetadata[$belongsTo->foreignField]->getValue($object); |
|
86 | + $idValue = $metadata->propertyMetadata[$belongsTo->foreignField]->getValue($object); |
|
87 | 87 | |
88 | 88 | if (!$idValue) { |
89 | 89 | return; |