Skip to content

Commit

Permalink
Remove extra space
Browse files Browse the repository at this point in the history
  • Loading branch information
DivineOmega committed Jun 25, 2019
1 parent 4e3cad4 commit 789eb74
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Objects/Migrator.php
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ private function sanityCheck()

$postDotFieldsToMigrate = array_map(function ($field) {
$fieldParts = explode('.', $field);

return end($fieldParts);
}, $this->fieldsToMigrate);

Expand All @@ -160,7 +161,7 @@ private function sanityCheck()
}

foreach ($this->keyFields as $keyField) {
if (!in_array($keyField, $this->fieldsToMigrate) && !in_array($keyField, $postDotFieldsToMigrate)) {
if (!in_array($keyField, $this->fieldsToMigrate) && !in_array($keyField, $postDotFieldsToMigrate)) {
throw new MissingFieldToMigrateException('The field `'.$keyField.'` is present in the key fields list but not present in the fields to migrate.');
}
}
Expand Down

0 comments on commit 789eb74

Please sign in to comment.