diff --git a/representative_image.api.php b/representative_image.api.php
index bb6443c..96e80bb 100644
--- a/representative_image.api.php
+++ b/representative_image.api.php
@@ -16,6 +16,7 @@
  *   The source entity.
  *
  * @return void
+ *   There is no return value for this function.
  */
 function hook_representative_image_alter(\Drupal\Core\Field\FieldItemListInterface $items, \Drupal\Core\Field\FieldDefinitionInterface $representative_image_field, \Drupal\Core\Entity\FieldableEntityInterface $entity): void {
   // If the image has empty alt text, load in the field_alt_text value.
diff --git a/src/Plugin/Field/FieldFormatter/EntityReferenceRepresentativeImage.php b/src/Plugin/Field/FieldFormatter/EntityReferenceRepresentativeImage.php
index b867105..5f0ca16 100644
--- a/src/Plugin/Field/FieldFormatter/EntityReferenceRepresentativeImage.php
+++ b/src/Plugin/Field/FieldFormatter/EntityReferenceRepresentativeImage.php
@@ -80,7 +80,7 @@ class EntityReferenceRepresentativeImage extends EntityReferenceFormatterBase {
       '#type' => 'select',
       '#options' => $this->fieldFormatterManager->getOptions('image'),
       '#title' => t('Image formatter'),
-      '#default_value' => $this->getSettingFromFormState($form_state,'type'),
+      '#default_value' => $this->getSettingFromFormState($form_state, 'type'),
       '#required' => TRUE,
       '#ajax' => [
         'callback' => [$this, 'onFormatterTypeChange'],
@@ -185,7 +185,7 @@ class EntityReferenceRepresentativeImage extends EntityReferenceFormatterBase {
     $summary = parent::settingsSummary();
 
     $plugin = $this->getImageFieldFormatter($this->getSetting('type'), $this->getSetting('settings'));
-    $summary[] = $this->t('Formatter: @formatter', ['@formatter'=> $plugin->getPluginDefinition()['label']]);
+    $summary[] = $this->t('Formatter: @formatter', ['@formatter' => $plugin->getPluginDefinition()['label']]);
     $summary = array_merge($summary, $plugin->settingsSummary());
 
     return $summary;
