@@ -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 | } |
@@ -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 |
@@ -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); |
@@ -67,7 +67,7 @@ |
||
67 | 67 | $args = [$object]; |
68 | 68 | |
69 | 69 | if ($state == 'delete') { |
70 | - $args= [get_class($object), $this->getIdValue($object)]; |
|
70 | + $args = [get_class($object), $this->getIdValue($object)]; |
|
71 | 71 | } |
72 | 72 | |
73 | 73 | call_user_func([$this->webServiceClient, $state], ...$args); |
@@ -73,7 +73,7 @@ discard block |
||
73 | 73 | */ |
74 | 74 | public function clear($objectName = null) |
75 | 75 | { |
76 | - $this->unitOfWork = new UnitOfWork($this->metadataFactory); |
|
76 | + $this->unitOfWork = new UnitOfWork($this->metadataFactory); |
|
77 | 77 | $this->transferPersister = new TransferPersister( |
78 | 78 | $this->metadataFactory, |
79 | 79 | $this->unitOfWork, |
@@ -113,7 +113,7 @@ discard block |
||
113 | 113 | |
114 | 114 | public function getClassMetadata($className): TransferMetadata |
115 | 115 | { |
116 | - if(is_object($className)) { |
|
116 | + if (is_object($className)) { |
|
117 | 117 | $className = get_class($className); |
118 | 118 | } |
119 | 119 |