From e5e8997dfb1b9e509cd5e43da0f0d6864ede1f33 Mon Sep 17 00:00:00 2001
From: Igor Biki <ibiki@uwaterloo.ca>
Date: Tue, 25 Feb 2025 15:14:28 -0500
Subject: [PATCH] ISTWCMS-7275: Fix minor syntax consistency in error message
 rendering.

A trailing comma was added to ensure consistent syntax formatting across multiple block plugins. This change does not impact functionality but improves code readability and adherence to coding standards.
---
 src/Plugin/Block/ReferenceAuthorsBlock.php  | 2 +-
 src/Plugin/Block/ReferenceBlock.php         | 2 +-
 src/Plugin/Block/ReferenceKeywordsBlock.php | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/Plugin/Block/ReferenceAuthorsBlock.php b/src/Plugin/Block/ReferenceAuthorsBlock.php
index 92ff4b7..7ba7b87 100644
--- a/src/Plugin/Block/ReferenceAuthorsBlock.php
+++ b/src/Plugin/Block/ReferenceAuthorsBlock.php
@@ -101,7 +101,7 @@ class ReferenceAuthorsBlock extends BlockBase implements ContainerFactoryPluginI
     // before using view, to prevent call function on null errors.
     if (!$view) {
       return [
-        '#markup' => $this->t('There was an error loading the block.')
+        '#markup' => $this->t('There was an error loading the block.'),
       ];
     }
 
diff --git a/src/Plugin/Block/ReferenceBlock.php b/src/Plugin/Block/ReferenceBlock.php
index 9e9be29..b908ebe 100644
--- a/src/Plugin/Block/ReferenceBlock.php
+++ b/src/Plugin/Block/ReferenceBlock.php
@@ -101,7 +101,7 @@ class ReferenceBlock extends BlockBase implements ContainerFactoryPluginInterfac
     // before using view, to prevent call function on null errors.
     if (!$view) {
       return [
-        '#markup' => $this->t('There was an error loading the block.')
+        '#markup' => $this->t('There was an error loading the block.'),
       ];
     }
 
diff --git a/src/Plugin/Block/ReferenceKeywordsBlock.php b/src/Plugin/Block/ReferenceKeywordsBlock.php
index 5a9b793..8c65458 100644
--- a/src/Plugin/Block/ReferenceKeywordsBlock.php
+++ b/src/Plugin/Block/ReferenceKeywordsBlock.php
@@ -101,7 +101,7 @@ class ReferenceKeywordsBlock extends BlockBase implements ContainerFactoryPlugin
     // before using view, to prevent call function on null errors.
     if (!$view) {
       return [
-        '#markup' => $this->t('There was an error loading the block.')
+        '#markup' => $this->t('There was an error loading the block.'),
       ];
     }
 
-- 
GitLab