From 09b0b6789b7a2bf47b4d1837b3461c95c1412477 Mon Sep 17 00:00:00 2001 From: Dale Frey Date: Wed, 15 Jan 2025 12:43:16 -0500 Subject: [PATCH] USAGOV-2177: lint errors --- web/themes/custom/usagov/usagov.theme | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/web/themes/custom/usagov/usagov.theme b/web/themes/custom/usagov/usagov.theme index 55f924686a..36e4700b6d 100644 --- a/web/themes/custom/usagov/usagov.theme +++ b/web/themes/custom/usagov/usagov.theme @@ -449,8 +449,7 @@ function usagov_preprocess_breadcrumb(&$variables) { $database = \Drupal::database(); - - if (strpos($_SERVER['REQUEST_URI'], 'agencies/') !== false) { + if (strpos($_SERVER['REQUEST_URI'], 'agencies/') !== FALSE) { $variables['breadcrumb'] = []; $variables['breadcrumb'][] = ['text' => 'Home', 'url' => 'https://www.usa.gov/']; $nid = $database->query("SELECT path FROM path_alias WHERE alias LIKE '%about-the-us%'")->fetchField(); @@ -464,7 +463,7 @@ function usagov_preprocess_breadcrumb(&$variables) { $variables['breadcrumb'][] = ['text' => Drupal::service('title_resolver')->getTitle(\Drupal::request(), \Drupal::routeMatch()->getRouteObject())]; } - if (strpos($_SERVER['REQUEST_URI'], 'states/') !== false) { + if (strpos($_SERVER['REQUEST_URI'], 'states/') !== FALSE) { $variables['breadcrumb'] = []; $variables['breadcrumb'][] = ['text' => 'Home', 'url' => 'https://www.usa.gov/']; $nid = $database->query("SELECT path FROM path_alias WHERE alias LIKE '%about-the-us%'")->fetchField(); @@ -478,7 +477,7 @@ function usagov_preprocess_breadcrumb(&$variables) { $variables['breadcrumb'][] = ['text' => Drupal::service('title_resolver')->getTitle(\Drupal::request(), \Drupal::routeMatch()->getRouteObject())]; } - if (strpos($_SERVER['REQUEST_URI'], 'agencias/') !== false) { + if (strpos($_SERVER['REQUEST_URI'], 'agencias/') !== FALSE) { $variables['breadcrumb'] = []; $variables['breadcrumb'][] = ['text' => 'Home', 'url' => 'https://www.usa.gov/']; $nid = $database->query("SELECT path FROM path_alias WHERE alias LIKE '%acerca-de-estados-unidos%'")->fetchField(); @@ -492,7 +491,7 @@ function usagov_preprocess_breadcrumb(&$variables) { $variables['breadcrumb'][] = ['text' => Drupal::service('title_resolver')->getTitle(\Drupal::request(), \Drupal::routeMatch()->getRouteObject())]; } - if (strpos($_SERVER['REQUEST_URI'], 'estados/') !== false) { + if (strpos($_SERVER['REQUEST_URI'], 'estados/') !== FALSE) { $variables['breadcrumb'] = []; $variables['breadcrumb'][] = ['text' => 'Home', 'url' => 'https://www.usa.gov/']; $nid = $database->query("SELECT path FROM path_alias WHERE alias LIKE '%acerca-de-estados-unidos%'")->fetchField();