diff -u b/entity_clone.module b/entity_clone.module
--- b/entity_clone.module
+++ b/entity_clone.module
@@ -64,7 +64,7 @@
     'taxonomy_term' => [
       'entity_clone' => '\Drupal\entity_clone\EntityClone\Content\TaxonomyTermEntityClone',
       'entity_clone_form' => '\Drupal\entity_clone\EntityClone\Content\ContentEntityCloneFormBase',
-    ]
+    ],
   ];
 
   /** @var \Drupal\Core\Entity\EntityTypeInterface[] $entity_types */
diff -u b/src/EntityClone/Config/ConfigEntityCloneFormBase.php b/src/EntityClone/Config/ConfigEntityCloneFormBase.php
--- b/src/EntityClone/Config/ConfigEntityCloneFormBase.php
+++ b/src/EntityClone/Config/ConfigEntityCloneFormBase.php
@@ -60,20 +60,20 @@
     $form = [];
 
     if ($this->entityTypeManager->getDefinition($entity->getEntityTypeId())->getKey('label')) {
-      $form['label'] = array(
+      $form['label'] = [
         '#type' => 'textfield',
         '#title' => $this->translationManager->translate('New Label'),
         '#maxlength' => 255,
         '#required' => TRUE,
-      );
+      ];
     }
 
-    $form['id'] = array(
+    $form['id'] = [
       '#type' => 'machine_name',
       '#title' => $this->translationManager->translate('New Id'),
       '#maxlength' => 255,
       '#required' => TRUE,
-    );
+    ];
 
     // If entity must have a prefix
     // (e.g. entity_form_mode, entity_view_mode, ...).
diff -u b/src/EntityClone/Content/ContentEntityCloneBase.php b/src/EntityClone/Content/ContentEntityCloneBase.php
--- b/src/EntityClone/Content/ContentEntityCloneBase.php
+++ b/src/EntityClone/Content/ContentEntityCloneBase.php
@@ -7,7 +7,6 @@
 use Drupal\Core\Entity\EntityTypeInterface;
 use Drupal\Core\Entity\EntityTypeManagerInterface;
 use Drupal\entity_clone\EntityClone\EntityCloneInterface;
-use Drupal\field\Entity\FieldConfig;
 use Symfony\Component\DependencyInjection\ContainerInterface;
 
 /**
@@ -57,10 +56,11 @@
    */
   public function cloneEntity(EntityInterface $entity, EntityInterface $cloned_entity, $properties = []) {
     $to_attach = [];
+
     if (!empty($properties)) {
       foreach ($properties as $fieldname => $element) {
         $to_attach[$fieldname] = [];
-        foreach ($element['childs'] as $child) {
+        foreach ($element['children'] as $child) {
           foreach ($child['entity'] as $identifier => $data) {
             $exploded_identifier = explode('-', $identifier);
             $original_reference = $this->entityTypeManager->getStorage($exploded_identifier[0])
diff -u b/src/EntityClone/Content/ContentEntityCloneFormBase.php b/src/EntityClone/Content/ContentEntityCloneFormBase.php
--- b/src/EntityClone/Content/ContentEntityCloneFormBase.php
+++ b/src/EntityClone/Content/ContentEntityCloneFormBase.php
@@ -2,17 +2,16 @@
 
 namespace Drupal\entity_clone\EntityClone\Content;
 
-use Drupal\Core\Entity\Entity;
 use Drupal\Core\Entity\EntityHandlerInterface;
 use Drupal\Core\Entity\EntityInterface;
 use Drupal\Core\Entity\EntityTypeInterface;
 use Drupal\Core\Entity\EntityTypeManager;
 use Drupal\Core\Entity\FieldableEntityInterface;
+use Drupal\Core\Field\FieldItemListInterface;
 use Drupal\Core\Form\FormStateInterface;
 use Drupal\Core\StringTranslation\TranslationManager;
 use Drupal\entity_clone\EntityClone\EntityCloneFormInterface;
 use Drupal\field\Entity\FieldConfig;
-use Drupal\node\Entity\Node;
 use Symfony\Component\DependencyInjection\ContainerInterface;
 
 /**
@@ -52,7 +51,6 @@
     );
   }
 
-
   /**
    * {@inheritdoc}
    */
@@ -69,22 +67,11 @@
         if ($field_definition instanceof FieldConfig && $field_definition->getType() == 'entity_reference') {
           $field = $entity->get($field_id);
           if ($field->count() > 0) {
-            $childs = [];
-            foreach ($field->getValue() as $targets) {
-              foreach ($targets as $id) {
-                $child_entity = entity_load($field_definition->getSetting('target_type'), $id);
-                /** @var \Drupal\entity_clone\EntityClone\EntityCloneFormInterface $entity_clone_handler */
-                if ($this->entityTypeManager->hasHandler($child_entity->getEntityTypeId(), 'entity_clone_form')) {
-                  $entity_clone_form_handler = $this->entityTypeManager->getHandler($child_entity->getEntityTypeId(), 'entity_clone_form');
-                  $childs[] = $entity_clone_form_handler->formElement($child_entity);
-                }
-              }
-            }
             $form['entity'][$entity->getEntityTypeId() . '-' . $entity->bundle() . '-' . $entity->id()]['fields'][$field_id] = [
               '#type' => 'details',
               '#title' => '' . $field_definition->label() . ' ( ' . $field_id . ' )',
               '#open' => FALSE,
-              'childs' => $childs,
+              'children' => $this->getChildren($field, $field_definition),
               '#tree' => TRUE,
             ];
           }
@@ -96,6 +83,32 @@
   }
 
   /**
+   * Fetches clonable children from a field.
+   *
+   * @param Drupal\Core\Field\FieldItemListInterface $field
+   *   The field item list.
+   * @param Drupal\field\Entity\FieldConfig $field_definition
+   *   The field definition.
+   *
+   * @return array
+   *   The list of children.
+   */
+  protected function getChildren(FieldItemListInterface $field, FieldConfig $field_definition) {
+    $children = [];
+    foreach ($field->getValue() as $targets) {
+      foreach ($targets as $id) {
+        $child_entity = entity_load($field_definition->getSetting('target_type'), $id);
+        /** @var \Drupal\entity_clone\EntityClone\EntityCloneFormInterface $entity_clone_handler */
+        if ($this->entityTypeManager->hasHandler($child_entity->getEntityTypeId(), 'entity_clone_form')) {
+          $entity_clone_form_handler = $this->entityTypeManager->getHandler($child_entity->getEntityTypeId(), 'entity_clone_form');
+          $children[] = $entity_clone_form_handler->formElement($child_entity);
+        }
+      }
+    }
+    return $children;
+  }
+
+  /**
    * {@inheritdoc}
    */
   public function getValues(FormStateInterface $form_state) {
diff -u b/src/EntityClone/Content/TaxonomyTermEntityClone.php b/src/EntityClone/Content/TaxonomyTermEntityClone.php
--- b/src/EntityClone/Content/TaxonomyTermEntityClone.php
+++ b/src/EntityClone/Content/TaxonomyTermEntityClone.php
@@ -15,7 +15,7 @@
   public function cloneEntity(EntityInterface $entity, EntityInterface $cloned_entity, $properties = []) {
     /** @var \Drupal\core\Entity\ContentEntityInterface $cloned_entity */
 
-    // Enforce a parent if the cloned term don't have a parent
+    // Enforce a parent if the cloned term doesn't have a parent.
     // (First level of a taxonomy tree).
     if (!isset($cloned_entity->parent->target_id)) {
       $cloned_entity->set('parent', 0);
diff -u b/src/Form/EntityCloneForm.php b/src/Form/EntityCloneForm.php
--- b/src/Form/EntityCloneForm.php
+++ b/src/Form/EntityCloneForm.php
@@ -72,8 +72,7 @@
     $this->stringTranslationManager = $string_translation;
     $this->eventDispatcher = $eventDispatcher;
 
-    $parameter_name = $route_match->getRouteObject()
-      ->getOption('_entity_clone_entity_type_id');
+    $parameter_name = $route_match->getRouteObject()->getOption('_entity_clone_entity_type_id');
     $this->entity = $route_match->getParameter($parameter_name);
 
     $this->entityTypeDefinition = $entity_type_manager->getDefinition($this->entity->getEntityTypeId());
@@ -106,10 +105,7 @@
 
       /** @var \Drupal\entity_clone\EntityClone\EntityCloneFormInterface $entity_clone_handler */
       if ($this->entityTypeManager->hasHandler($this->entityTypeDefinition->id(), 'entity_clone_form')) {
-
         $entity_clone_form_handler = $this->entityTypeManager->getHandler($this->entityTypeDefinition->id(), 'entity_clone_form');
-
-
         $form = array_merge($form, $entity_clone_form_handler->formElement($this->entity));
       }
 
