Skip to content

Commit

Permalink
Fixed linting.
Browse files Browse the repository at this point in the history
  • Loading branch information
kepol committed Jan 30, 2024
1 parent c181247 commit b550921
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions modules/quant_search/src/Controller/Search.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion src/Utility.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit b550921

Please sign in to comment.