diff --git a/simple_mobile_login.module b/simple_mobile_login.module
index 7d8e2ac..3867873 100644
--- a/simple_mobile_login.module
+++ b/simple_mobile_login.module
@@ -31,7 +31,7 @@ function simple_mobile_login_form_alter(&$form, FormStateInterface $form_state,
     if ($form_id == 'user_login_form') {
       array_unshift($form['#validate'], 'simple_mobile_login_validate');
       $form['name']['#title'] = $field_name['label'] . " / Username";
-      $form['name']['#description'] = t("Enter your @fieldname / username.", array('@fieldname' => $field_name['label']));
+      $form['name']['#description'] = t("Enter your @fieldname / username.", ['@fieldname' => $field_name['label']]);
     }
     // Set new register validation.
     if ($form_id == 'user_form' || $form_id == 'user_register_form') {
@@ -50,7 +50,7 @@ function simple_mobile_login_user_register_validate($form, FormStateInterface &$
   $query->condition($field_name['name'] . '.value', $user_input[0]['value']);
   $results = $query->execute();
   if (count($results) > 0) {
-    $form_state->setErrorByName($field_name['name'], t('Entered @fieldlabel is already exists. Please enter different value', array('@fieldlabel' => $field_name['label'])));
+    $form_state->setErrorByName($field_name['name'], t('Entered @fieldlabel is already exists. Please enter different value', ['@fieldlabel' => $field_name['label']]));
   }
 }
 
@@ -75,12 +75,12 @@ function simple_mobile_login_validate($form, FormStateInterface &$form_state) {
       // Check for multiple records.
       if (count($results) > 1) {
         $form_state->setErrorByName('name', t('Sorry, Please contact administration. There are multiple user records found with same input.'));
-        \Drupal::logger('user')->notice('Login attempt failed for %user. with field', array('%user' => $login_input));
+        \Drupal::logger('user')->notice('Login attempt failed for %user. with field', ['%user' => $login_input]);
       }
       else {
         $uid = array_keys($results)[0];
         $query = \Drupal::database()->select('users_field_data', 'u');
-        $query->fields('u', array('name'));
+        $query->fields('u', ['name']);
         $query->condition('u.uid', $uid);
         $name = $query->execute()->fetchObject();
         $form_state->setValue('name', $name->name);
@@ -88,8 +88,8 @@ function simple_mobile_login_validate($form, FormStateInterface &$form_state) {
     }
   }
   if ($user_not_found) {
-    $form_state->setErrorByName('name', t('Sorry, unrecognized username or password. <a href="@password">Have you forgotten your password?</a>', array('@password' => Url::fromRoute('user.pass'))));
-    \Drupal::logger('user')->notice('Login attempt failed for %user.', array('%user' => $login_input));
+    $form_state->setErrorByName('name', t('Sorry, unrecognized username or password. <a href="@password">Have you forgotten your password?</a>', ['@password' => Url::fromRoute('user.pass')]));
+    \Drupal::logger('user')->notice('Login attempt failed for %user.', ['%user' => $login_input]);
   }
 }
 
@@ -99,7 +99,7 @@ function simple_mobile_login_validate($form, FormStateInterface &$form_state) {
 function simple_mobile_login_get_telephone_field() {
   $entity_type_id = 'user';
   $bundle = 'user';
-  $field = array();
+  $field = [];
   foreach (\Drupal::service('entity_field.manager')->getFieldDefinitions($entity_type_id, $bundle) as $field_definition) {
     if ($field_definition->getFieldStorageDefinition()->isBaseField() == FALSE && $field_definition->getType() === 'telephone') {
       $field['name'] = $field_definition->getName();
