Skip to content

Commit

Permalink
fix: Add newline after closing brace
Browse files Browse the repository at this point in the history
Additional change
- Use === operator to not convert type that may cause unintended results
  • Loading branch information
BaoNguyen09 committed Dec 9, 2024
1 parent 3b112a4 commit 69fb542
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -131,9 +131,10 @@ public function viewElements(FieldItemListInterface $items, $langcode) {
$link_url = Url::fromUri(urldecode('base:' . $item->link_uri));
}
else {
if (strcmp($item->link_uri, "#") == 0) {
if (strcmp($item->link_uri, "#") === 0) {
$link_url = $this->pathValidator->getUrlIfValid('<none>');
} else {
}
else {
$link_url = $this->pathValidator->getUrlIfValid($item->link_uri ?? '<none>');
}
}
Expand Down

0 comments on commit 69fb542

Please sign in to comment.