diff --git a/src/Controller/NodeModerateRevisionController.php b/src/Controller/NodeModerateRevisionController.php
index 9db47c1..a2c3c81 100644
--- a/src/Controller/NodeModerateRevisionController.php
+++ b/src/Controller/NodeModerateRevisionController.php
@@ -37,7 +37,8 @@ class NodeModerateRevisionController extends NodeRevisionController {
    *   Vid of the node revision from the right.
    * @param string $filter
    *   If $filter == 'raw' raw text is compared (including html tags)
-   *   If $filter == 'raw-plain' markdown function is applied to the text before comparison.
+   *   If $filter == 'raw-plain' markdown function is applied to the
+   *   text before comparison.
    *
    * @return array
    *   Table showing the diff between the two node revisions.
diff --git a/src/Plugin/views/field/DiffModerate.php b/src/Plugin/views/field/DiffModerate.php
index fc51b7d..fad3eff 100644
--- a/src/Plugin/views/field/DiffModerate.php
+++ b/src/Plugin/views/field/DiffModerate.php
@@ -18,7 +18,7 @@ class DiffModerate extends LinkBase {
    */
   protected function defineOptions() {
     $options = parent::defineOptions();
-    $options['label']['default'] = t('Review changes and moderate');
+    $options['label']['default'] = $this->t('Review changes and moderate');
     return $options;
   }
 
@@ -28,9 +28,10 @@ class DiffModerate extends LinkBase {
   public function render(ResultRow $row) {
     $entity = $row->_entity;
     $nid = (integer) $entity->id();
-    $rev_key = $entity->getEntityType()->getKey('revision');
+    // $rev_key = $entity->getEntityType()->getKey('revision');
     // Current published revision.
-    // We have the current revision so to get the published one we load the node fresh.
+    // We have the current revision so to get the published one
+    // we load the node fresh.
     $node = \Drupal::entityTypeManager()->getStorage('node')->load($nid);
     $published_vid = (integer) $node->getRevisionId();
     // Latest draft revision.
@@ -40,6 +41,9 @@ class DiffModerate extends LinkBase {
     return parent::render($row);
   }
 
+  /**
+   * {@inheritdoc}
+   */
   protected function getUrlInfo(ResultRow $row): Url {
     $nid = $row->_entity->id();
     $published_vid = $row->_revision_id_published;
