From 91f14480fb448d669adcb1e3a72c4004f2440d96 Mon Sep 17 00:00:00 2001
From: Eric Bremner <ebremner@uwaterloo.ca>
Date: Thu, 8 Sep 2022 15:34:59 -0400
Subject: [PATCH] ISTWCMS-5709: coding standards

---
 src/Service/UwNodeContent.php | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/src/Service/UwNodeContent.php b/src/Service/UwNodeContent.php
index d49c237e..383d485e 100644
--- a/src/Service/UwNodeContent.php
+++ b/src/Service/UwNodeContent.php
@@ -252,7 +252,8 @@ class UwNodeContent {
     if ($node_flags['get_header']) {
       if ($view_mode == 'teaser') {
         $content_data['header']['date'] = $this->addToContentData('date', 'field_uw_blog_date');
-      } else {
+      }
+      else {
         $content_data['header']['date'] = $this->addToContentData('date', 'field_uw_blog_date');
         $content_data['header']['author'] = $this->addToContentData('author', 'field_author');
       }
@@ -295,8 +296,7 @@ class UwNodeContent {
    *
    * @param array $node_flags
    *   The flags for the node.
-   * @param string $view_mode
-   *   The view mode of the node.
+   *
    * @return array
    *   Array of content to get from the node.
    */
@@ -390,6 +390,7 @@ class UwNodeContent {
    *   The flags for the node.
    * @param string $view_mode
    *   The view mode of the node.
+   *
    * @return array
    *   Array of content to get from the node.
    */
@@ -403,11 +404,12 @@ class UwNodeContent {
       if ($view_mode == 'teaser') {
         $content_data['header']['date'] = $this->addToContentData('date', 'field_uw_news_date');
       }
-      else{
+      else {
         $content_data['header']['date'] = $this->addToContentData('date', 'field_uw_news_date');
         $content_data['header']['author'] = $this->addToContentData('author', 'field_author');
       }
     }
+
     // Get the media.
     if ($node_flags['get_media']) {
       $content_data['media'] = $this->addToContentData('media', NULL);
-- 
GitLab