From b5509214087fab64252ca959e91261d8d16ffa4d Mon Sep 17 00:00:00 2001 From: Kristen Pol Date: Mon, 29 Jan 2024 23:36:38 -0800 Subject: [PATCH] Fixed linting. --- modules/quant_search/src/Controller/Search.php | 2 -- src/Utility.php | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/modules/quant_search/src/Controller/Search.php b/modules/quant_search/src/Controller/Search.php index 03006a30..b701d3be 100644 --- a/modules/quant_search/src/Controller/Search.php +++ b/modules/quant_search/src/Controller/Search.php @@ -5,7 +5,6 @@ use Drupal\Core\Access\AccessResult; use Drupal\Core\Controller\ControllerBase; use Drupal\Core\Session\AccountInterface; -use Drupal\Core\Url; use Drupal\node\Entity\Node; use Drupal\quant\Seed; use Drupal\quant\Utility; @@ -262,7 +261,6 @@ public static function generateSearchRecord($entity, $langcode = NULL) { // @todo Update node-only logic. $record['url'] = Utility::getCanonicalUrl('node', $entity->id(), $langcode); - // Add search meta for node entities. if ($entity->getEntityTypeId() == 'node') { $record += self::getNodeTerms($entity, $langcode); diff --git a/src/Utility.php b/src/Utility.php index d41e9a55..071462c2 100644 --- a/src/Utility.php +++ b/src/Utility.php @@ -79,7 +79,7 @@ public static function getUrl(string $url = NULL, string $langcode = NULL) : str * * @param string $type * The entity type. - * @param integer $id + * @param int $id * The entity id. * @param string $langcode * The language code.