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();