Format source code

This commit is contained in:
benjamin melançon 2023-11-10 09:39:13 -05:00
parent a8929f9e1c
commit df01ba34c6

View file

@ -53,7 +53,7 @@ class MigrationHelperFieldTransformations {
$langcodes = $entity->getTranslationLanguages(); $langcodes = $entity->getTranslationLanguages();
$translations = []; $translations = [];
if ($langcodes > 0) { if ($langcodes > 0) {
foreach($langcodes as $langcode) { foreach ($langcodes as $langcode) {
$check_translation = $entity->getTranslation($langcode->getId()); $check_translation = $entity->getTranslation($langcode->getId());
if ($check_translation !== NULL) { if ($check_translation !== NULL) {
$translations[] = $entity->getTranslation($langcode->getId()); $translations[] = $entity->getTranslation($langcode->getId());
@ -71,7 +71,7 @@ class MigrationHelperFieldTransformations {
'status' => 1, 'status' => 1,
]; ];
// Some entities (like taxonomy terms) do not have a an owner id // Some entities (like taxonomy terms) do not have a an owner id
if(method_exists($entity, 'getOwnerId')) { if (\method_exists($entity, 'getOwnerId')) {
$entity_data['uid'] = $entity->getOwnerId(); $entity_data['uid'] = $entity->getOwnerId();
} }