Skip to content

Commit

Permalink
USAGOV-2177: lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Dale Frey committed Jan 15, 2025
1 parent bb8005b commit 09b0b67
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions web/themes/custom/usagov/usagov.theme
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand All @@ -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();
Expand All @@ -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();
Expand All @@ -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();
Expand Down

0 comments on commit 09b0b67

Please sign in to comment.