From 3fde3022a8794e26b0c030749785e65b35dca00c Mon Sep 17 00:00:00 2001 From: Eric Bremner <ebremner@uwaterloo.ca> Date: Mon, 22 Nov 2021 16:04:39 +0000 Subject: [PATCH] ISTWCMS-5129: coding standards --- uw_ct_service.module | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/uw_ct_service.module b/uw_ct_service.module index 0a56819..c6a35bf 100644 --- a/uw_ct_service.module +++ b/uw_ct_service.module @@ -6,7 +6,6 @@ */ use Drupal\Core\Form\FormStateInterface; -use Drupal\Core\Url; /** * Implements hook_geofield_map_latlon_element_alter(). @@ -122,8 +121,7 @@ function uw_ct_service_form_alter(array &$form, FormStateInterface $form_state, /** * Implements hook_preprocess_views_view(). */ -function uw_ct_service_preprocess_views_view(&$variables) -{ +function uw_ct_service_preprocess_views_view(&$variables) { // Get the view variable. $view = $variables['view']; @@ -159,7 +157,7 @@ function uw_ct_service_preprocess_views_view(&$variables) $content_list[] = [ 'url' => '/taxonomy/term/' . end($current_path_parts), 'text' => 'Category', - 'active' => strpos($current_path, '/taxonomy/term/') !== false ? 1 : 0, + 'active' => strpos($current_path, '/taxonomy/term/') !== FALSE ? 1 : 0, ]; // Tab for A-Z. @@ -173,14 +171,14 @@ function uw_ct_service_preprocess_views_view(&$variables) $content_list[] = [ 'url' => '/services/audience', 'text' => 'Audience', - 'active' => strpos($current_path, '/services/audience/') !== false ? 1 : 0, + 'active' => strpos($current_path, '/services/audience/') !== FALSE ? 1 : 0, ]; // Tab for Popular. $content_list[] = [ 'url' => '/services/popular', 'text' => 'Popular', - 'active' => strpos($current_path, '/services/audience/') !== false ? 1 : 0, + 'active' => strpos($current_path, '/services/audience/') !== FALSE ? 1 : 0, ]; // Set the tabs in the variables. -- GitLab