Skip to content

Commit

Permalink
Run Linter
Browse files Browse the repository at this point in the history
  • Loading branch information
PineappleIOnic committed Jun 6, 2024
1 parent 39ab136 commit 0411eb4
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions bin/MigrationCLI.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ class MigrationCLI
protected Transfer $transfer;

protected Appwrite $source;

protected DestinationsAppwrite $destination;

/**
Expand All @@ -35,20 +36,20 @@ public function drawFrame()

// Render Errors
$destErrors = $this->destination->getErrors();
if (!empty($destErrors)) {
if (! empty($destErrors)) {
echo "\n\nDestination Errors:\n";
foreach ($destErrors as $error) {
/** @var Utopia\Migration\Exception $error */
echo $error->getResourceName() . "[".$error->getResourceId()."] - ".$error->getMessage()."\n";
echo $error->getResourceName().'['.$error->getResourceId().'] - '.$error->getMessage()."\n";
}
}

$sourceErrors = $this->source->getErrors();
if (!empty($sourceErrors)) {
if (! empty($sourceErrors)) {
echo "\n\nSource Errors:\n";
foreach ($sourceErrors as $error) {
/** @var Utopia\Migration\Exception $error */
echo $error->getResourceType() . "[".$error->getResourceId()."] - ".$error->getMessage()."\n";
echo $error->getResourceType().'['.$error->getResourceId().'] - '.$error->getMessage()."\n";
}
}
}
Expand Down

0 comments on commit 0411eb4

Please sign in to comment.