diff --git a/lib/Drupal/login_redirect/Form/LoginRedirectAdminForm.php b/lib/Drupal/login_redirect/Form/LoginRedirectAdminForm.php
index b4cc306..5d6b5a7 100644
--- a/lib/Drupal/login_redirect/Form/LoginRedirectAdminForm.php
+++ b/lib/Drupal/login_redirect/Form/LoginRedirectAdminForm.php
@@ -28,21 +28,21 @@ class LoginRedirectAdminForm extends ConfigFormBase {
   public function buildForm(array $form, array &$form_state) {
     $config = $this->config('login_redirect.parameters');
 
-    $form['status'] = array(
+    $form['status'] = [
       '#type' => 'radios',
-      '#options' => array(0 => t('Disabled'), 1 => t('Enabled')),
+      '#options' => [0 => t('Disabled'), 1 => t('Enabled')],
       '#title' => t('Module status'),
       '#default_value' => $config->get('status'),
       '#description' => t('Should the module be enabled?'),
-    );
+    ];
 
-    $form['parameter_name'] = array(
+    $form['parameter_name'] = [
       '#type' => 'textfield',
       '#title' => t('Parameter Name'),
       '#default_value' => $config->get('parameter_name'),
       '#maxlength' => 255,
       '#description' => t('Enter user defined query parameter name same as we have q in drupal core. For example if the parameter name is set to "destination", then you would visit user/login&destination=(redirect destination).'),
-    );
+    ];
 
     return parent::buildForm($form, $form_state);
   }
diff --git a/login_redirect.admin.inc b/login_redirect.admin.inc
index 2e7e8c2..3e8d24d 100644
--- a/login_redirect.admin.inc
+++ b/login_redirect.admin.inc
@@ -9,20 +9,20 @@
  * Generates a configuration form.
  */
 function login_redirect_admin_settings() {
-  $options = array(0 => t('Disabled'), 1 => t('Enabled'));
-  $form['status'] = array(
+  $options = [0 => t('Disabled'), 1 => t('Enabled')];
+  $form['status'] = [
     '#type' => 'radios',
     '#title' => t('Module Status'),
     '#default_value' => variable_get('login_redirect_status', 0),
     '#options' => $options,
     '#description' => t('Should the module be enabled?'),
-  );
-  $form['parameter_name'] = array(
+  ];
+  $form['parameter_name'] = [
     '#type' => 'textfield',
     '#title' => t('Parameter Name'),
     '#default_value' => variable_get('login_redirect_parameter_name', 'destination'),
     '#description' => t('Enter user defined query parameter name same as we have q in drupal core. For example if the parameter name is set to "destination", then you would visit user/login&destination=(redirect destination).'),
-  );
+  ];
   $form['#submit'][] = 'login_redirect_admin_settings_submit';
   return system_settings_form($form);
 
diff --git a/login_redirect.install b/login_redirect.install
index ee30dc0..8ef6642 100644
--- a/login_redirect.install
+++ b/login_redirect.install
@@ -12,5 +12,5 @@ function login_redirect_install() {
   drupal_set_message(t('Thank you for installing Login Redirect. Please
   proceed to the <a href="@settings">Settings Page</a> and configure
   Login Redirect properly.',
-  array('@settings' => url('admin/config/people/login_redirect'))));
+  ['@settings' => url('admin/config/people/login_redirect')]));
 }
diff --git a/login_redirect.module b/login_redirect.module
index bf93d58..e01b245 100644
--- a/login_redirect.module
+++ b/login_redirect.module
@@ -22,24 +22,24 @@ function login_redirect_help($path, $arg) {
       $output .= '<p>' . t('legendm33066 &lt;http://drupal.org/user/1290564&gt;') . '</p>';
 
       // Sets "variables" variable which will later be used to generate a list.
-      $variables = array();
-      $variables['items'] = array(
+      $variables = [];
+      $variables['items'] = [
         l(t('Enable the module'), 'admin/modules'),
         l(t('Configure the module'), 'admin/config/system/login_redirect'));
       $variables['title'] = t('Installation');
       $variables['type'] = 'ul';
-      $variables['attributes'] = array('');
-      $render_array = array(
+      $variables['attributes'] = [''];
+      $render_array = [
         '#theme' => 'item_list',
         '#items' => $variables['items'],
-      );
+      ];
       $output .= drupal_render($render_array);
       $output .= '<h3>' . t('Uses') . '</h3>';
       $output .= '<p>' . t('Visit the Login page (usually user/login) and append the redirection URL
 parameter using the parameter name defined in the <a href="@settings">Settings page</a>.
 For example, if you set the parameter name to
 "destination", then you would visit user/login?destination=http://www.google.com
-to have the user redirected to Google (http://www.google.com) after logging in.', array('@settings' => url('admin/login_redirect/settings'))) . '</p>';
+to have the user redirected to Google (http://www.google.com) after logging in.', ['@settings' => url('admin/login_redirect/settings')]) . '</p>';
       $output .= '<h3>' . '<font color="red">' . t('Notice') . '</font>' . '</h3>';
       $output .= '<p>' . '<font color="red">' . t('The URL passed parameter ALWAYS overrides the "destination" parameter handled by Drupal itself.') . '</font>' . '</p>';
       return $output;
@@ -54,10 +54,10 @@ function login_redirect_form_user_login_form_alter(&$form, &$form_state, $form_i
   // the query parameter set first time. We check the $form_state to see if
   // the query parameter is already set.
   if (isset($form_state['input']['login_redirect_destination'])) {
-    $form['login_redirect_destination'] = array(
+    $form['login_redirect_destination'] = [
       '#type' => 'hidden',
       '#value' => $form_state['input']['login_redirect_destination'],
-    );
+    ];
   }
   else {
     $config = \Drupal::config('login_redirect.parameters');
@@ -68,10 +68,10 @@ function login_redirect_form_user_login_form_alter(&$form, &$form_state, $form_i
 
       if (isset($query[$parameter_name]) && !empty($query[$parameter_name])) {
         $redirect = $query[$parameter_name];
-        $form['login_redirect_destination'] = array(
+        $form['login_redirect_destination'] = [
           '#type' => 'hidden',
           '#value' => $redirect,
-        );
+        ];
       }
     }
   }
@@ -85,7 +85,7 @@ function login_redirect_form_user_login_form_alter(&$form, &$form_state, $form_i
 function login_redirect_user_login_submit(&$form, &$form_state) {
   if (isset($form_state['input']['login_redirect_destination'])) {
     $destination = String::checkPlain(filter_xss($form_state['input']['login_redirect_destination']));
-    $destination = url($destination,array('absolute' => TRUE));
+    $destination = url($destination,['absolute' => TRUE]);
     if (UrlHelper::isValid($destination)) {
       $response = new RedirectResponse($destination, 302);
       $response->send();
