diff --git a/modules/entityqueue_smartqueue/src/Plugin/EntityQueueHandler/SmartQueue.php b/modules/entityqueue_smartqueue/src/Plugin/EntityQueueHandler/SmartQueue.php
index 24b4f46..cfc6022 100644
--- a/modules/entityqueue_smartqueue/src/Plugin/EntityQueueHandler/SmartQueue.php
+++ b/modules/entityqueue_smartqueue/src/Plugin/EntityQueueHandler/SmartQueue.php
@@ -102,7 +102,7 @@ public function buildConfigurationForm(array $form, FormStateInterface $form_sta
         'wrapper' => 'smartqueue-bundle-wrapper',
         'callback' => [get_class($this), 'smartqueueSettingsAjax'],
         'method' => 'replace',
-      ]
+      ],
     ];
 
     $form_state_values = $form_state->getCompleteFormState()->getValues();
diff --git a/src/Annotation/EntityQueueHandler.php b/src/Annotation/EntityQueueHandler.php
index cbe44dd..bfa2b0e 100644
--- a/src/Annotation/EntityQueueHandler.php
+++ b/src/Annotation/EntityQueueHandler.php
@@ -28,9 +28,9 @@ class EntityQueueHandler extends Plugin {
   /**
    * The human-readable name of the queue handler plugin.
    *
-   * @ingroup plugin_translatable
-   *
    * @var \Drupal\Core\Annotation\Translation
+   *
+   * @ingroup plugin_translatable
    */
   public $title;
 
diff --git a/src/Controller/EntityQueueUIController.php b/src/Controller/EntityQueueUIController.php
index cd51bb8..20b72c2 100644
--- a/src/Controller/EntityQueueUIController.php
+++ b/src/Controller/EntityQueueUIController.php
@@ -27,14 +27,14 @@ class EntityQueueUIController extends ControllerBase {
   /**
    * The Entityqueue repository service.
    *
-   * @var EntityQueueRepositoryInterface
+   * @var \Drupal\entityqueue\EntityQueueRepositoryInterface
    */
   protected $entityQueueRepository;
 
   /**
-   * Constructs a EntityQueueUIController object
+   * Constructs a EntityQueueUIController object.
    *
-   * @param EntityQueueRepositoryInterface $entityqueue_respository
+   * @param \Drupal\entityqueue\EntityQueueRepositoryInterface $entityqueue_respository
    *   The Entityqueue repository service.
    */
   public function __construct(EntityQueueRepositoryInterface $entityqueue_respository) {
@@ -50,7 +50,6 @@ public static function create(ContainerInterface $container) {
     );
   }
 
-
   /**
    * Provides a list of all the subqueues of an entity queue.
    *
@@ -111,7 +110,12 @@ public function subqueueListForEntity(RouteMatchInterface $route_match, $entity_
         $row['operations']['data']['#links'] = [
           'remove-item' => [
             'title' => $this->t('Remove from queue'),
-            'url' => Url::fromRoute('entity.entity_subqueue.remove_item', ['entity_queue' => $queues[$subqueue->bundle()]->id(), 'entity_subqueue' => $subqueue_id, 'entity' => $entity->id()]),
+            'url' => Url::fromRoute('entity.entity_subqueue.remove_item',
+            [
+              'entity_queue' => $queues[$subqueue->bundle()]->id(),
+              'entity_subqueue' => $subqueue_id,
+              'entity' => $entity->id(),
+            ]),
             'attributes' => [
               'class' => ['use-ajax'],
             ],
@@ -122,7 +126,12 @@ public function subqueueListForEntity(RouteMatchInterface $route_match, $entity_
         $row['operations']['data']['#links'] = [
           'add-item' => [
             'title' => $this->t('Add to queue'),
-            'url' => Url::fromRoute('entity.entity_subqueue.add_item', ['entity_queue' => $queues[$subqueue->bundle()]->id(), 'entity_subqueue' => $subqueue_id, 'entity' => $entity->id()]),
+            'url' => Url::fromRoute('entity.entity_subqueue.add_item',
+            [
+              'entity_queue' => $queues[$subqueue->bundle()]->id(),
+              'entity_subqueue' => $subqueue_id,
+              'entity' => $entity->id(),
+            ]),
             'attributes' => [
               'class' => ['use-ajax'],
             ],
@@ -231,7 +240,7 @@ public function subqueueAjaxOperation(EntitySubqueueInterface $entity_subqueue,
         $content['errors'] = [
           '#theme' => 'status_messages',
           '#message_list' => [
-            'error' => [$this->t('The operation could not be performed for the following reasons:')]
+            'error' => [$this->t('The operation could not be performed for the following reasons:')],
           ],
           '#status_headings' => [
             'error' => $this->t('Error message'),
diff --git a/src/Entity/EntityQueue.php b/src/Entity/EntityQueue.php
index 533a67a..4b725c1 100644
--- a/src/Entity/EntityQueue.php
+++ b/src/Entity/EntityQueue.php
@@ -144,7 +144,7 @@ public function getActAsQueue() {
    * {@inheritdoc}
    */
   public function isReversed() {
-    return isset($this->queue_settings['reverse']) ? $this->queue_settings['reverse'] : FALSE;
+    return $this->queue_settings['reverse'] ?? FALSE;
   }
 
   /**
@@ -327,7 +327,8 @@ protected static function invalidateTagsOnDelete(EntityTypeInterface $entity_typ
   public function getCacheTagsToInvalidate() {
     // A newly created or deleted queue could alter views data relationships, so
     // we must invalidate the associated 'views_data' cache tag.
-    return Cache::mergeTags(parent::getCacheTagsToInvalidate(), ['views_data', 'entity_field_info']);
+    return Cache::mergeTags(parent::getCacheTagsToInvalidate(),
+    ['views_data', 'entity_field_info']);
   }
 
   /**
diff --git a/src/EntityQueueAccessControlHandler.php b/src/EntityQueueAccessControlHandler.php
index 0751a07..9400194 100644
--- a/src/EntityQueueAccessControlHandler.php
+++ b/src/EntityQueueAccessControlHandler.php
@@ -28,12 +28,20 @@ protected function checkAccess(EntityInterface $entity, $operation, AccountInter
       case 'update':
       case 'enable':
       case 'disable':
-        return AccessResult::allowedIfHasPermissions($account, ["update {$entity->id()} entityqueue", 'manipulate all entityqueues', 'administer entityqueue'], 'OR');
+        return AccessResult::allowedIfHasPermissions($account, [
+          "update {$entity->id()} entityqueue",
+          'manipulate all entityqueues',
+          'administer entityqueue',
+        ], 'OR');
 
       break;
 
       case 'delete':
-        return AccessResult::allowedIfHasPermissions($account, ["delete {$entity->id()} entityqueue", 'manipulate all entityqueues', 'administer entityqueue'], 'OR');
+        return AccessResult::allowedIfHasPermissions($account, [
+          "delete {$entity->id()} entityqueue",
+          'manipulate all entityqueues',
+          'administer entityqueue',
+        ], 'OR');
 
       break;
 
diff --git a/src/EntityQueueHandlerPluginCollection.php b/src/EntityQueueHandlerPluginCollection.php
index fe2d20a..89c21c9 100644
--- a/src/EntityQueueHandlerPluginCollection.php
+++ b/src/EntityQueueHandlerPluginCollection.php
@@ -36,9 +36,10 @@ public function __construct(PluginManagerInterface $manager, $instance_id, array
   }
 
   /**
-   * {@inheritdoc}
+   * Returns the entity queue handler.
    *
    * @return \Drupal\entityqueue\EntityQueueHandlerInterface
+   *   The entity queue handler.
    */
   public function &get($instance_id) {
     return parent::get($instance_id);
diff --git a/src/EntityQueueListBuilder.php b/src/EntityQueueListBuilder.php
index 5b48a0e..4cb062f 100644
--- a/src/EntityQueueListBuilder.php
+++ b/src/EntityQueueListBuilder.php
@@ -124,7 +124,11 @@ public function render() {
 
     foreach (['enabled', 'disabled'] as $status) {
       $build[$status]['#type'] = 'container';
-      $build[$status]['#attributes'] = ['class' => ['entity-queue-list-section', $status]];
+      $build[$status]['#attributes'] = [
+        'class' => ['entity-queue-list-section',
+          $status,
+        ],
+      ];
       $build[$status]['table'] = [
         '#type' => 'table',
         '#attributes' => [
diff --git a/src/EntityQueuePermissions.php b/src/EntityQueuePermissions.php
index 3149f9c..b4c1bea 100644
--- a/src/EntityQueuePermissions.php
+++ b/src/EntityQueuePermissions.php
@@ -16,6 +16,7 @@ class EntityQueuePermissions {
    * Returns an array of queue permissions.
    *
    * @return array
+   *   An array containing a set of permissions.
    */
   public function permissions() {
     $perms = [];
@@ -34,6 +35,7 @@ public function permissions() {
    *   An EntityQueue entity.
    *
    * @return array
+   *   An Array containing the permissions of specific queues.
    */
   public function buildPermissions(EntityQueue $queue) {
     $queue_id = $queue->id();
diff --git a/src/EntityQueueRepository.php b/src/EntityQueueRepository.php
index c5d84b1..2dd0be4 100644
--- a/src/EntityQueueRepository.php
+++ b/src/EntityQueueRepository.php
@@ -6,7 +6,7 @@
 use Drupal\Core\Entity\EntityTypeManagerInterface;
 
 /**
- * Class EntityQueueRepository.
+ * Class to provide a repository to manage entities.
  */
 class EntityQueueRepository implements EntityQueueRepositoryInterface {
 
diff --git a/src/EntityQueueRepositoryInterface.php b/src/EntityQueueRepositoryInterface.php
index 73c203c..95925b5 100644
--- a/src/EntityQueueRepositoryInterface.php
+++ b/src/EntityQueueRepositoryInterface.php
@@ -5,7 +5,7 @@
 use Drupal\Core\Entity\EntityInterface;
 
 /**
- * Interface EntityQueueRepositoryInterface.
+ * Interface EntityQueueRepositoryInterface for mapping the enitityqueue repo.
  */
 interface EntityQueueRepositoryInterface {
 
diff --git a/src/EntitySubqueueAccessControlHandler.php b/src/EntitySubqueueAccessControlHandler.php
index 3fde53b..ce5d42f 100644
--- a/src/EntitySubqueueAccessControlHandler.php
+++ b/src/EntitySubqueueAccessControlHandler.php
@@ -23,20 +23,31 @@ protected function checkAccess(EntityInterface $entity, $operation, AccountInter
     switch ($operation) {
       case 'view':
         return AccessResult::allowedIfHasPermission($account, 'access content');
+
       break;
 
       case 'update':
-        return AccessResult::allowedIfHasPermissions($account, ["update {$entity->bundle()} entityqueue", 'manipulate all entityqueues', 'administer entityqueue'], 'OR');
+        return AccessResult::allowedIfHasPermissions($account, [
+          "update {$entity->bundle()} entityqueue",
+          'manipulate all entityqueues',
+          'administer entityqueue',
+        ], 'OR');
+
       break;
 
       case 'delete':
         $can_delete_subqueue = AccessResult::allowedIf(!$entity->getQueue()->getHandlerPlugin()->hasAutomatedSubqueues());
 
-        $access_result = AccessResult::allowedIfHasPermissions($account, ["delete {$entity->bundle()} entityqueue", 'manipulate all entityqueues', 'administer entityqueue'], 'OR')
+        $access_result = AccessResult::allowedIfHasPermissions($account, [
+          "delete {$entity->bundle()} entityqueue",
+          'manipulate all entityqueues',
+          'administer entityqueue',
+        ], 'OR')
           ->andIf($can_delete_subqueue)
           ->addCacheableDependency($entity->getQueue());
 
         return $access_result;
+
       break;
 
       default:
@@ -49,7 +60,11 @@ protected function checkAccess(EntityInterface $entity, $operation, AccountInter
    * {@inheritdoc}
    */
   protected function checkCreateAccess(AccountInterface $account, array $context, $entity_bundle = NULL) {
-    $access_result = AccessResult::allowedIfHasPermissions($account, ["create {$entity_bundle} entityqueue", 'manipulate all entityqueues', 'administer entityqueue'], 'OR');
+    $access_result = AccessResult::allowedIfHasPermissions($account, [
+      "create {$entity_bundle} entityqueue",
+      'manipulate all entityqueues',
+      'administer entityqueue',
+    ], 'OR');
 
     if ($entity_bundle) {
       $queue = EntityQueue::load($entity_bundle);
diff --git a/src/EntitySubqueueInterface.php b/src/EntitySubqueueInterface.php
index 4a1f5da..ad8de1a 100644
--- a/src/EntitySubqueueInterface.php
+++ b/src/EntitySubqueueInterface.php
@@ -56,7 +56,7 @@ public function removeItem(EntityInterface $entity);
    * Checks whether the subqueue has a given item.
    *
    * @param \Drupal\Core\Entity\EntityInterface $entity
-   *   An entity object
+   *   An entity object.
    *
    * @return bool
    *   TRUE if the item was found, FALSE otherwise.
diff --git a/src/Form/EntityQueueForm.php b/src/Form/EntityQueueForm.php
index f99258a..0329e5d 100644
--- a/src/Form/EntityQueueForm.php
+++ b/src/Form/EntityQueueForm.php
@@ -245,7 +245,9 @@ public function form(array $form, FormStateInterface $form_state) {
         [EntityReferenceItem::class, 'fieldSettingsAjaxProcess'],
         [EntityReferenceItem::class, 'formProcessMergeParent'],
       ],
-      '#element_validate' => [[get_class($this), 'entityReferenceSelectionSettingsValidate']],
+      '#element_validate' => [
+        [get_class($this), 'entityReferenceSelectionSettingsValidate'],
+      ],
     ];
 
     // @todo It should be up to the queue handler to determine what entity types
@@ -371,8 +373,16 @@ public static function entityReferenceSelectionSettingsValidate(array $form, For
     // If no checkboxes were checked for 'target_bundles', store NULL ("all
     // bundles are referenceable") rather than empty array ("no bundle is
     // referenceable".
-    if ($form_state->getValue(['entity_settings', 'handler_settings', 'target_bundles']) === []) {
-      $form_state->setValue(['entity_settings', 'handler_settings', 'target_bundles'], NULL);
+    if ($form_state->getValue([
+      'entity_settings',
+      'handler_settings',
+      'target_bundles',
+    ]) === []) {
+      $form_state->setValue([
+        'entity_settings',
+        'handler_settings',
+        'target_bundles',
+      ], NULL);
     }
   }
 
@@ -412,11 +422,19 @@ public function save(array $form, FormStateInterface $form_state) {
     $edit_link = $queue->toLink($this->t('Edit'), 'edit-form')->toString();
     if ($status == SAVED_UPDATED) {
       $this->messenger()->addMessage($this->t('The entity queue %label has been updated.', ['%label' => $queue->label()]));
-      $this->logger('entityqueue')->notice('The entity queue %label has been updated.', ['%label' => $queue->label(), 'link' => $edit_link]);
+      $this->logger('entityqueue')
+        ->notice('The entity queue %label has been updated.', [
+          '%label' => $queue->label(),
+          'link' => $edit_link,
+        ]);
     }
     else {
       $this->messenger()->addMessage($this->t('The entity queue %label has been added.', ['%label' => $queue->label()]));
-      $this->logger('entityqueue')->notice('The entity queue %label has been added.', ['%label' => $queue->label(), 'link' => $edit_link]);
+      $this->logger('entityqueue')
+        ->notice('The entity queue %label has been added.', [
+          '%label' => $queue->label(),
+          'link' => $edit_link,
+        ]);
     }
 
     $form_state->setRedirectUrl($queue->toUrl('collection'));
diff --git a/src/Form/EntitySubqueueForm.php b/src/Form/EntitySubqueueForm.php
index 8197932..d71d495 100644
--- a/src/Form/EntitySubqueueForm.php
+++ b/src/Form/EntitySubqueueForm.php
@@ -284,11 +284,19 @@ public function save(array $form, FormStateInterface $form_state) {
     $edit_link = $subqueue->toLink($this->t('Edit'), 'edit-form')->toString();
     if ($status == SAVED_UPDATED) {
       $this->messenger()->addMessage($this->t('The entity subqueue %label has been updated.', ['%label' => $subqueue->label()]));
-      $this->logger('entityqueue')->notice('The entity subqueue %label has been updated.', ['%label' => $subqueue->label(), 'link' => $edit_link]);
+      $this->logger('entityqueue')
+        ->notice('The entity subqueue %label has been updated.', [
+          '%label' => $subqueue->label(),
+          'link' => $edit_link,
+        ]);
     }
     else {
       $this->messenger()->addMessage($this->t('The entity subqueue %label has been added.', ['%label' => $subqueue->label()]));
-      $this->logger('entityqueue')->notice('The entity subqueue %label has been added.', ['%label' => $subqueue->label(), 'link' => $edit_link]);
+      $this->logger('entityqueue')
+        ->notice('The entity subqueue %label has been added.', [
+          '%label' => $subqueue->label(),
+          'link' => $edit_link,
+        ]);
     }
 
     $queue = $subqueue->getQueue();
diff --git a/src/Plugin/Field/FieldWidget/EntityqueueDragtableWidget.php b/src/Plugin/Field/FieldWidget/EntityqueueDragtableWidget.php
index 5b0b7f8..98cea1b 100644
--- a/src/Plugin/Field/FieldWidget/EntityqueueDragtableWidget.php
+++ b/src/Plugin/Field/FieldWidget/EntityqueueDragtableWidget.php
@@ -11,7 +11,6 @@
 use Drupal\Core\Field\FieldStorageDefinitionInterface;
 use Drupal\Core\Field\Plugin\Field\FieldWidget\EntityReferenceAutocompleteWidget;
 use Drupal\Core\Form\FormStateInterface;
-use Drupal\Core\Render\Element;
 use Symfony\Component\Validator\ConstraintViolationInterface;
 
 /**
@@ -125,7 +124,8 @@ public function formElement(FieldItemListInterface $items, $delta, array $elemen
         ],
         '_remove' => [
           '#type' => 'submit',
-          '#name' => implode('_', array_merge($form['#parents'], [$field_name, $delta])) . '_remove',
+          '#name' => implode('_', array_merge($form['#parents'],
+          [$field_name, $delta])) . '_remove',
           '#delta' => $delta,
           '#value' => $this->t('Remove'),
           '#attributes' => ['class' => ['remove-item-submit', 'align-right']],
@@ -143,14 +143,19 @@ public function formElement(FieldItemListInterface $items, $delta, array $elemen
       // editable.
       if ($this->getSetting('link_to_edit_form') && $referenced_entities[$delta]->getEntityType()->hasLinkTemplate('edit-form')) {
         $element['_edit'] = $referenced_entities[$delta]->toLink($this->t('Edit'), 'edit-form', ['query' => ['destination' => \Drupal::request()->getRequestUri()]])->toRenderable() + [
-          '#attributes' => ['class' => ['form-item', 'entityqueue-edit-item-link']],
+          '#attributes' => [
+            'class' => [
+              'form-item',
+              'entityqueue-edit-item-link',
+            ],
+          ],
         ];
         $element['#attached']['html_head'][] = [
           [
             '#tag' => 'style',
             '#value' => '.js-form-wrapper .form-wrapper .form-item.entityqueue-edit-item-link { margin-left: 1em }',
           ],
-          'entityqueue-edit-item-link'
+          'entityqueue-edit-item-link',
         ];
       }
     }
@@ -234,10 +239,14 @@ protected function formMultipleElements(FieldItemListInterface $items, array &$f
     $elements = [];
     if ($max > 0) {
       for ($delta = 0; $delta < $max; $delta++) {
-        // For multiple fields, title and description are handled by the wrapping
-        // table.
+        // For multiple fields, title and description are handled by
+        // the wrapping table.
         $element = [
-          '#title' => $this->t('@title (value @number)', ['@title' => $this->fieldDefinition->getLabel(), '@number' => $delta + 1]),
+          '#title' => $this->t('@title (value @number)',
+          [
+            '@title' => $this->fieldDefinition->getLabel(),
+            '@number' => $delta + 1,
+          ]),
           '#title_display' => 'invisible',
           '#description' => '',
         ];
@@ -346,8 +355,8 @@ public static function addItemAjax(array $form, FormStateInterface $form_state)
 
     // Add a DIV around the delta receiving the Ajax effect.
     $delta = $element['#max_delta'];
-    $element[$delta]['#prefix'] = '<div class="ajax-new-content">' . (isset($element[$delta]['#prefix']) ? $element[$delta]['#prefix'] : '');
-    $element[$delta]['#suffix'] = (isset($element[$delta]['#suffix']) ? $element[$delta]['#suffix'] : '') . '</div>';
+    $element[$delta]['#prefix'] = '<div class="ajax-new-content">' . ($element[$delta]['#prefix'] ?? '');
+    $element[$delta]['#suffix'] = ($element[$delta]['#suffix'] ?? '') . '</div>';
 
     return $element;
   }
diff --git a/src/Plugin/views/relationship/EntityQueueRelationship.php b/src/Plugin/views/relationship/EntityQueueRelationship.php
index 5731113..269ec1e 100644
--- a/src/Plugin/views/relationship/EntityQueueRelationship.php
+++ b/src/Plugin/views/relationship/EntityQueueRelationship.php
@@ -183,7 +183,7 @@ public function query() {
       'table' => $this->definition['field table'],
       'field' => $this->definition['field field'],
       'adjusted' => TRUE,
-      'entity_type' => isset($views_data['table']['entity type']) ? $views_data['table']['entity type'] : NULL,
+      'entity_type' => $views_data['table']['entity type'] ?? NULL,
     ];
     if (!empty($this->options['required'])) {
       $first['type'] = 'INNER';

