Format source code
This commit is contained in:
parent
a8929f9e1c
commit
df01ba34c6
1 changed files with 2 additions and 2 deletions
|
@ -53,7 +53,7 @@ class MigrationHelperFieldTransformations {
|
|||
$langcodes = $entity->getTranslationLanguages();
|
||||
$translations = [];
|
||||
if ($langcodes > 0) {
|
||||
foreach($langcodes as $langcode) {
|
||||
foreach ($langcodes as $langcode) {
|
||||
$check_translation = $entity->getTranslation($langcode->getId());
|
||||
if ($check_translation !== NULL) {
|
||||
$translations[] = $entity->getTranslation($langcode->getId());
|
||||
|
@ -71,7 +71,7 @@ class MigrationHelperFieldTransformations {
|
|||
'status' => 1,
|
||||
];
|
||||
// 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();
|
||||
}
|
||||
|
||||
|
|
Reference in a new issue