Skip to content

Commit f73d3e0

Browse files
chore -- added linting and formattings
1 parent a0660eb commit f73d3e0

2 files changed

Lines changed: 35 additions & 33 deletions

File tree

composer.lock

Lines changed: 30 additions & 30 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Migration/Transfer.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,9 @@ public function getStatusCounters(): array
131131
}
132132
// document resources are having status counter inside the cache
133133
foreach ($this->cache->getAll() as $resourceType => $resources) {
134-
if($resourceType == Resource::TYPE_DOCUMENT) continue;
134+
if ($resourceType == Resource::TYPE_DOCUMENT) {
135+
continue;
136+
}
135137
foreach ($resources as $resource) {
136138
if (isset($status[$resource->getName()])) {
137139
$status[$resource->getName()][$resource->getStatus()]++;
@@ -151,10 +153,10 @@ public function getStatusCounters(): array
151153
// merging other statuses to the document resource if not present
152154
$allDocumentStatus = [Resource::STATUS_PENDING,Resource::STATUS_SUCCESS,Resource::STATUS_ERROR,Resource::STATUS_SKIPPED,Resource::STATUS_PROCESSING,Resource::STATUS_WARNING];
153155
foreach ($allDocumentStatus as $statusValue) {
154-
if(!isset($status[Resource::TYPE_DOCUMENT][$statusValue])) {
156+
if (!isset($status[Resource::TYPE_DOCUMENT][$statusValue])) {
155157
$status[Resource::TYPE_DOCUMENT][$statusValue] = 0;
158+
}
156159
}
157-
}
158160

159161
// Process Destination Errors
160162
foreach ($this->destination->getErrors() as $error) {

0 commit comments

Comments
 (0)