Skip to content

Commit 7c4f5ee

Browse files
committed
refactor: remove phpcs ignore comments by correcting their logic
1 parent 16a03a5 commit 7c4f5ee

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

language_switcher_popup.module

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
*/
77

88
use Drupal\Core\Routing\RouteMatchInterface;
9+
use Drupal\Core\Url;
910

1011
/**
1112
* Implements hook_help().
@@ -16,10 +17,8 @@ function language_switcher_popup_help($route_name, RouteMatchInterface $route_ma
1617
$output = "<h3>" . t("About") . "</h3>";
1718
$output .= "<p>" . t("Shows a confirmation popup that search filters will be reset when users switch languages") . "</p>";
1819
$output .= "<h3>" . t("Configuration") . "</h3>";
19-
// phpcs:ignore -- Avoid backslash escaping in translatable strings when possible, use '' quotes instead
20-
$output .= "<p>" . t("Configure the popup messages at <a href=\":config\">Language Switcher Popup Settings</a>.", [
21-
// phpcs:ignore -- Namespaced classes/interfaces/traits should be referenced with use statements
22-
":config" => \Drupal\Core\Url::fromRoute("language_switcher_popup.settings")->toString(),
20+
$output .= "<p>" . t('Configure the popup messages at <a href=":config">Language Switcher Popup Settings</a>.', [
21+
":config" => Url::fromRoute("language_switcher_popup.settings")->toString(),
2322
]) . "</p>";
2423
return $output;
2524
}

0 commit comments

Comments
 (0)