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();
$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();
}