From 362dfb00122ee1efcdd62477b79c73c45935dab8 Mon Sep 17 00:00:00 2001
From: Kevin Paxman <kpaxman@uwaterloo.ca>
Date: Mon, 5 Dec 2022 14:41:47 -0500
Subject: [PATCH] EXPHR: code standards and update link

---
 src/Form/UwAddUsersForm.php | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/Form/UwAddUsersForm.php b/src/Form/UwAddUsersForm.php
index d2453be7..51d3e4cb 100644
--- a/src/Form/UwAddUsersForm.php
+++ b/src/Form/UwAddUsersForm.php
@@ -25,7 +25,7 @@ class UwAddUsersForm extends FormBase {
     // The list of users from this form.
     $form['users'] = [
       '#title' => $this->t('WatIAM user ID(s): (maximum 8 characters per ID)'),
-      '#description' => $this->t('Enter a single WatIAM user ID, or multiple WatIAM user IDs, one per line. All letters will be converted to lower case. Duplicates will be ignored.<br>You can use <a href="https://idm.uwaterloo.ca/search/" target="_blank">authenticated WatIAM search</a> if you don\'t know their user ID (will open a new window).'),
+      '#description' => $this->t('Enter a single WatIAM user ID, or multiple WatIAM user IDs, one per line. All letters will be converted to lower case. Duplicates will be ignored.<br>You can use <a href="https://iamtools.uwaterloo.ca/directory/" target="_blank">authenticated campus people directory</a> if you don\'t know their user ID (will open a new window).'),
       '#type' => 'textarea',
       '#required' => TRUE,
     ];
@@ -68,13 +68,13 @@ class UwAddUsersForm extends FormBase {
 
       // Don't process long user IDs.
       if (strlen($user) > 8) {
-        $this->messenger()->addError($this->t('The user ID <em>@user</em> is too long and was skipped.', [ '@user' => $user ] ));
+        $this->messenger()->addError($this->t('The user ID <em>@user</em> is too long and was skipped.', ['@user' => $user]));
         continue;
       }
 
       // Don't process user IDs with invalid characters.
       if (!preg_match('/^[a-z0-9]+$/', $user)) {
-        $this->messenger()->addError($this->t('The user ID <em>@user</em> contains invalid characters and was skipped.', [ '@user' => $user ] ));
+        $this->messenger()->addError($this->t('The user ID <em>@user</em> contains invalid characters and was skipped.', ['@user' => $user]));
         continue;
       }
 
@@ -110,7 +110,7 @@ class UwAddUsersForm extends FormBase {
       // Do the LDAP lookup.
       $person = \Drupal::service('uw_cfg_common.uw_ldap')->lookupPerson($user);
       if (!$person) {
-        $this->messenger()->addError($this->t('The user ID <em>@user</em> could not be found (or was set to private) and was skipped.', [ '@user' => $user ] ));
+        $this->messenger()->addError($this->t('The user ID <em>@user</em> could not be found (or was set to private) and was skipped.', ['@user' => $user]));
         continue;
       }
       $firstname = empty($person['givenname'][0]) ? 'Firstname' : $person['givenname'][0];
-- 
GitLab