diff --git a/src/Plugin/Field/FieldWidget/InlineEntityFormComplexOpen.php b/src/Plugin/Field/FieldWidget/InlineEntityFormComplexOpen.php
index b3af5da..d35b88e 100644
--- a/src/Plugin/Field/FieldWidget/InlineEntityFormComplexOpen.php
+++ b/src/Plugin/Field/FieldWidget/InlineEntityFormComplexOpen.php
@@ -24,9 +24,8 @@ class InlineEntityFormComplexOpen extends InlineEntityFormComplex {
 
   /**
    * Nearly exact copy of InlineEntityFormComplex 8.x-1.0-rc11.
-   * Search the code for "modifications".
    *
-   * {@inheritdoc}
+   * Search the code for "modifications".
    */
   public function formElement(FieldItemListInterface $items, $delta, array $element, array &$form, FormStateInterface $form_state) {
     $settings = $this->getSettings();
@@ -71,7 +70,9 @@ class InlineEntityFormComplexOpen extends InlineEntityFormComplex {
     }
 
     $this->prepareFormState($form_state, $items, $element['#translating']);
-    $entities = $form_state->get(['inline_entity_form', $this->getIefId(), 'entities']);
+    $entities = $form_state->get(['inline_entity_form',
+      $this->getIefId(), 'entities',
+    ]);
 
     // Prepare cardinality information.
     $entities_count = count($entities);
@@ -79,7 +80,7 @@ class InlineEntityFormComplexOpen extends InlineEntityFormComplex {
     $cardinality_reached = ($cardinality > 0 && $entities_count == $cardinality);
 
     // Build the "Multiple value" widget.
-    // TODO - does this belong in #element_validate?
+    // @todo does this belong in #element_validate?
     $element['#element_validate'][] = [get_class($this), 'updateRowWeights'];
     // Add the required element marker & validation.
     if ($element['#required']) {
@@ -136,13 +137,17 @@ class InlineEntityFormComplexOpen extends InlineEntityFormComplex {
               $entity->bundle(),
               $parent_langcode,
               $key,
-              array_merge($parents, ['inline_entity_form', 'entities', $key, 'form']),
+              array_merge($parents, ['inline_entity_form',
+                'entities', $key, 'form',
+              ]),
               $value['form'] == 'edit' ? $entity : $entity->createDuplicate()
             ),
           ];
 
           $element['entities'][$key]['form']['inline_entity_form']['#process'] = [
-            ['\Drupal\inline_entity_form\Element\InlineEntityForm', 'processEntityForm'],
+            ['\Drupal\inline_entity_form\Element\InlineEntityForm',
+              'processEntityForm',
+            ],
             [get_class($this), 'addIefSubmitCallbacks'],
             [get_class($this), 'buildEntityFormActions'],
           ];
@@ -265,12 +270,12 @@ class InlineEntityFormComplexOpen extends InlineEntityFormComplex {
     $create_bundles = $this->getCreateBundles();
     $create_bundles_count = count($create_bundles);
     $allow_new = $settings['allow_new'] && !empty($create_bundles);
-    $hide_cancel = FALSE;
+    // $hide_cancel = FALSE;
     // If the field is required and empty try to open one of the forms.
     if (empty($entities) && $this->fieldDefinition->isRequired()) {
       if ($settings['allow_existing'] && !$allow_new) {
         $form_state->set(['inline_entity_form', $this->getIefId(), 'form'], 'ief_add_existing');
-        $hide_cancel = TRUE;
+        // $hide_cancel = TRUE;
       }
       elseif ($create_bundles_count == 1 && $allow_new && !$settings['allow_existing']) {
         $bundle = reset($target_bundles);
@@ -281,18 +286,22 @@ class InlineEntityFormComplexOpen extends InlineEntityFormComplex {
         $parent_bundle = $this->fieldDefinition->getTargetBundle();
         if ($parent_entity_type != $target_type || $parent_bundle != $bundle) {
           $form_state->set(['inline_entity_form', $this->getIefId(), 'form'], 'add');
-          $form_state->set(['inline_entity_form', $this->getIefId(), 'form settings'], [
+          $form_state->set(['inline_entity_form', $this->getIefId(),
+            'form settings',
+          ], [
             'bundle' => $bundle,
           ]);
-          $hide_cancel = TRUE;
+          // $hide_cancel = TRUE;
         }
       }
     }
 
     // If no form is open, show buttons that open one.
-    $open_form = $form_state->get(['inline_entity_form', $this->getIefId(), 'form']);
+    $open_form = $form_state->get(['inline_entity_form',
+      $this->getIefId(), 'form',
+    ]);
 
-    /**
+    /*
      * Modifications:
      * Everything above is copied exactly from InlineEntityFormComplex and
      * most everything below is also copied but just moved around such that
@@ -319,19 +328,22 @@ class InlineEntityFormComplexOpen extends InlineEntityFormComplex {
         ];
         $element['form'] += inline_entity_form_reference_form($element['form'], $form_state);
 
-        /**
+        /*
          * Modifications to add existing:
          * Hide input label;
          * Change to not required;
          * Remove cancel button;
-         * Replace submit function with InlineEntityFormComplexOpen::reference_form_submit;
+         * Replace submit function with;
+         * InlineEntityFormComplexOpen::reference_form_submit;
          */
         unset($element['form']['entity_id']['#title']);
         unset($element['form']['entity_id']['#required']);
         $element['form']['#process'][] = [get_class($this), 'hideCancel'];
         $key = array_search('inline_entity_form_reference_form_submit', $element['form']['#ief_element_submit']);
         if ($key !== FALSE) {
-          $element['form']['#ief_element_submit'][$key] = [get_class($this), 'reference_form_submit'];
+          $element['form']['#ief_element_submit'][$key] = [get_class($this),
+            'reference_form_submit',
+          ];
         }
       }
 
@@ -378,7 +390,7 @@ class InlineEntityFormComplexOpen extends InlineEntityFormComplex {
           '#ief_form' => 'add',
         ];
 
-        /**
+        /*
          * Modifications to add new:
          * Change container to fieldset;
          * Change "Add new.." text to "Create new..";
@@ -403,7 +415,9 @@ class InlineEntityFormComplexOpen extends InlineEntityFormComplex {
           ),
         ];
         $element['form']['inline_entity_form']['#process'] = [
-          ['\Drupal\inline_entity_form\Element\InlineEntityForm', 'processEntityForm'],
+          ['\Drupal\inline_entity_form\Element\InlineEntityForm',
+            'processEntityForm',
+          ],
           [get_class($this), 'addIefSubmitCallbacks'],
           [get_class($this), 'buildEntityFormActions'],
         ];
@@ -414,16 +428,15 @@ class InlineEntityFormComplexOpen extends InlineEntityFormComplex {
   }
 
   /**
-   * Checks for non-empty input value before passing onto original submit
-   * function.
+   * Checks for non-empty input value before passing onto original submit.
    *
    * This is only necessary because changing the add existing autocomplete
    * to not required allows submitting an empty value and the original
    * submit function does not check for an empty value.
    *
-   * @param $form
+   * @param string $reference_form
    *   The complete parent form.
-   * @param $form_state
+   * @param \Drupal\Core\Form\FormStateInterface $form_state
    *   The form state of the parent form.
    *
    * @see inline_entity_form_reference_form_submit()
