From 033527ddea776fc704be6d9df2b9bc011d63423e Mon Sep 17 00:00:00 2001
From: ebremner <ebremner@uwaterloo.ca>
Date: Tue, 1 Dec 2020 13:55:15 -0500
Subject: [PATCH] ISTWCMS-4199: coding standards

---
 includes/field.inc      |  2 +-
 includes/navigation.inc | 17 +++++++++--------
 2 files changed, 10 insertions(+), 9 deletions(-)

diff --git a/includes/field.inc b/includes/field.inc
index fb7cbd5e..579ed391 100644
--- a/includes/field.inc
+++ b/includes/field.inc
@@ -6,7 +6,7 @@
  */
 
 /**
- *
+ * Implements hook_theme_suggestions_field_alter().
  */
 function gesso_theme_suggestions_field_alter(&$suggestions, $variables) {
   $suggestions[] = 'field__node__' . $variables['element']['#field_name'] . '__' . $variables['element']['#bundle'] . '__' . $variables['element']['#view_mode'];
diff --git a/includes/navigation.inc b/includes/navigation.inc
index 5690e110..363ff2b1 100644
--- a/includes/navigation.inc
+++ b/includes/navigation.inc
@@ -2,25 +2,26 @@
 
 /**
  * @file
- */
-
-/**
- * Implements theme_preprocess_menu_local_tasks()
- *
- * @param $variables
+ * Navigation template functions.
  */
 
 use Drupal\Component\Utility\Html;
 
 /**
- *
+ * Implements hook_reprocess_menu_local_tasks().
  */
 function gesso_preprocess_menu_local_tasks(&$variables) {
   foreach (['primary', 'secondary'] as $type) {
     $tabs = [];
 
     // Sort the tabs by #weight.
-    uasort($variables[$type], ['Drupal\Component\Utility\SortArray', 'sortByWeightProperty']);
+    uasort(
+      $variables[$type],
+      [
+        'Drupal\Component\Utility\SortArray',
+        'sortByWeightProperty',
+      ]
+    );
 
     foreach (array_keys($variables[$type]) as $key) {
       // Add the tab to a new array.
-- 
GitLab