@@ -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 | |
@@ -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(); |
@@ -100,7 +100,7 @@ discard block |
||
| 100 | 100 | BelongsTo $belongsTo, |
| 101 | 101 | TransferManagerInterface $transferManager |
| 102 | 102 | ) { |
| 103 | - $idValue = $metadata->propertyMetadata[$belongsTo->foreignField]->getValue($object); |
|
| 103 | + $idValue = $metadata->propertyMetadata[$belongsTo->foreignField]->getValue($object); |
|
| 104 | 104 | |
| 105 | 105 | if (!$idValue) { |
| 106 | 106 | return; |
@@ -46,7 +46,7 @@ |
||
| 46 | 46 | { |
| 47 | 47 | $this->items = json_decode($response->getBody()->getContents() ?: '[]', true); |
| 48 | 48 | |
| 49 | - $this->iterator = function () { |
|
| 49 | + $this->iterator = function() { |
|
| 50 | 50 | foreach ($this->items as $key => $item) { |
| 51 | 51 | yield $key => $this->createTransfer($item); |
| 52 | 52 | } |
@@ -53,7 +53,7 @@ |
||
| 53 | 53 | } |
| 54 | 54 | |
| 55 | 55 | if ($this->isMultiId()) { |
| 56 | - return implode(array_map(function ($metadata) { |
|
| 56 | + return implode(array_map(function($metadata) { |
|
| 57 | 57 | return $metadata->name; |
| 58 | 58 | })); |
| 59 | 59 | } |
@@ -102,7 +102,7 @@ |
||
| 102 | 102 | TransferMetadata $metadata |
| 103 | 103 | ): bool { |
| 104 | 104 | /* @var $belongsTo BelongsTo */ |
| 105 | - $belongsTo = $propertyMetadata->getAnnotation(BelongsTo::class); |
|
| 105 | + $belongsTo = $propertyMetadata->getAnnotation(BelongsTo::class); |
|
| 106 | 106 | |
| 107 | 107 | if (is_array($belongsTo->foreignField)) { |
| 108 | 108 | return $this->hasMultiFieldsRelationshipChanged($object, $related, $belongsTo->foreignField); |
@@ -141,7 +141,7 @@ |
||
| 141 | 141 | |
| 142 | 142 | public function getByCriteria(CriteriaInterface $criteria, string $transferName) |
| 143 | 143 | { |
| 144 | - $client = $this->getClient($transferName); |
|
| 144 | + $client = $this->getClient($transferName); |
|
| 145 | 145 | |
| 146 | 146 | $request = $criteria->createRequest($this->getMetadata($transferName)); |
| 147 | 147 | |