From 8eda4f54ad9963f35c5e531dfcf26691ec605de6 Mon Sep 17 00:00:00 2001
From: Eric Bremner <ebremner@uwaterloo.ca>
Date: Tue, 1 Aug 2023 11:43:49 -0400
Subject: [PATCH] ISTWCMS-5954: coding standards

---
 uw_cfg_common.install | 14 ++++++++++----
 1 file changed, 10 insertions(+), 4 deletions(-)

diff --git a/uw_cfg_common.install b/uw_cfg_common.install
index 2f0de45e..61af71b7 100644
--- a/uw_cfg_common.install
+++ b/uw_cfg_common.install
@@ -748,7 +748,7 @@ function uw_cfg_common_update_9108(&$sandbox) {
   // The or condition for the query.
   $group = $query->orConditionGroup();
 
-  // The number of nodes per batch
+  // The number of nodes per batch.
   $nodes_per_batch = 50;
 
   // Get the content types to batch.
@@ -843,7 +843,13 @@ function uw_cfg_common_update_9108(&$sandbox) {
   $sandbox['processed'] += count($nids);
 
   // Set the message to display.
-  $message = t('Processing nodes of - @p/@t.', ['@p' => $sandbox['processed'], '@t' => $sandbox['total']]);
+  $message = t(
+    'Processing nodes of - @p/@t.',
+    [
+      '@p' => $sandbox['processed'],
+      '@t' => $sandbox['total']
+    ]
+  );
 
   // If we are done, then complete the batching.
   if ($sandbox['processed'] >= $sandbox['total']) {
@@ -853,7 +859,7 @@ function uw_cfg_common_update_9108(&$sandbox) {
   }
 
   // Update the finished, when done processed / total will be 1.
-  $sandbox['#finished'] = ($sandbox['processed'] /  $sandbox['total']);
+  $sandbox['#finished'] = ($sandbox['processed'] / $sandbox['total']);
 
   return $message;
 }
@@ -903,7 +909,7 @@ function _uw_set_fieldable_path_storage_config() {
 
   // Get the path to cfg common config install directory.
   $path = \Drupal::service('extension.list.module')
-      ->getPath('uw_cfg_common') . '/config/install/';
+    ->getPath('uw_cfg_common') . '/config/install/';
   $config_dir = new FileStorage($path);
 
   // Get the config from the yml file into an array.
-- 
GitLab