diff --git a/auto_login_url.install b/auto_login_url.install
index fe18e5d..9b547ef 100644
--- a/auto_login_url.install
+++ b/auto_login_url.install
@@ -9,54 +9,54 @@
  * Implements hook_schema().
  */
 function auto_login_url_schema() {
-  $schema['auto_login_url'] = array(
+  $schema['auto_login_url'] = [
     'description' => 'Auto login records.',
-    'fields' => array(
-      'id' => array(
+    'fields' => [
+      'id' => [
         'description' => 'ID of the record.',
         'type' => 'serial',
         'not null' => TRUE,
-      ),
-      'uid' => array(
+      ],
+      'uid' => [
         'type' => 'int',
         'unsigned' => TRUE,
         'not null' => TRUE,
         'default' => 0,
         'description' => 'Primary Key: {users}.uid for user.',
-      ),
-      'hash' => array(
+      ],
+      'hash' => [
         'type' => 'varchar',
         'length' => 100,
         'not null' => FALSE,
         'default' => '',
         'description' => 'Unique hash tag for the generated link.',
-      ),
-      'destination' => array(
+      ],
+      'destination' => [
         'type' => 'varchar',
         'length' => 1000,
         'not null' => FALSE,
         'default' => '',
         'description' => 'The destination after user login.',
-      ),
-      'timestamp' => array(
+      ],
+      'timestamp' => [
         'type' => 'int',
         'not null' => TRUE,
         'default' => 0,
         'description' => 'Timestamp of the creation of the auto login link.',
-      ),
-    ),
-    'indexes' => array(
-      'hash_index' => array('hash'),
-      'timestamp_index' => array('timestamp'),
-    ),
-    'primary key' => array('id'),
-    'foreign keys' => array(
-      'user' => array(
+      ],
+    ],
+    'indexes' => [
+      'hash_index' => ['hash'],
+      'timestamp_index' => ['timestamp'],
+    ],
+    'primary key' => ['id'],
+    'foreign keys' => [
+      'user' => [
         'table' => 'users',
-        'columns' => array('uid' => 'uid'),
-      ),
-    ),
-  );
+        'columns' => ['uid' => 'uid'],
+      ],
+    ],
+  ];
 
   return $schema;
 }
diff --git a/auto_login_url.module b/auto_login_url.module
index 9f57c97..e57c722 100644
--- a/auto_login_url.module
+++ b/auto_login_url.module
@@ -56,19 +56,19 @@ function auto_login_url_cron() {
 function auto_login_url_token_info() {
 
   // Add new tokens.
-  $info = array();
+  $info = [];
 
   // Home token.
-  $info['tokens']['user']['auto-login-url-token'] = array(
+  $info['tokens']['user']['auto-login-url-token'] = [
     'name' => t('Auto Login URL'),
     'description' => t('This an auto login token for the user.'),
-  );
+  ];
 
   // Link that goes to user edit page.
-  $info['tokens']['user']['auto-login-url-account-edit-token'] = array(
+  $info['tokens']['user']['auto-login-url-account-edit-token'] = [
     'name' => t('Auto Login URL account edit'),
     'description' => t('This an auto login for the user account page.'),
-  );
+  ];
 
   return $info;
 }
@@ -76,8 +76,8 @@ function auto_login_url_token_info() {
 /**
  * Implements hook_tokens().
  */
-function auto_login_url_tokens($type, $tokens, array $data = array(), array $options = array()) {
-  $replacements = array();
+function auto_login_url_tokens($type, $tokens, array $data = [], array $options = []) {
+  $replacements = [];
   if ($type == 'user') {
     $user = $data['user'];
 
diff --git a/src/AutoLoginURLCreate.php b/src/AutoLoginURLCreate.php
index 8164af3..a931bea 100644
--- a/src/AutoLoginURLCreate.php
+++ b/src/AutoLoginURLCreate.php
@@ -64,7 +64,7 @@ class AutoLoginUrlCreate {
 
       // Check hash is unique.
       $result = $this->connection->select('auto_login_url', 'alu')
-        ->fields('alu', array('hash'))
+        ->fields('alu', ['hash'])
         ->condition('alu.hash', $hash_db)
         ->execute()
         ->fetchAssoc();
@@ -76,13 +76,13 @@ class AutoLoginUrlCreate {
 
     // Insert a new hash.
     $this->connection->insert('auto_login_url')
-      ->fields(array('uid', 'hash', 'destination', 'timestamp'))
-      ->values(array(
+      ->fields(['uid', 'hash', 'destination', 'timestamp'])
+      ->values([
         'uid' => $uid,
         'hash' => $hash_db,
         'destination' => $destination,
         'timestamp' => time(),
-      ))
+      ])
       ->execute();
 
     // Check if link is absolute.
diff --git a/src/AutoLoginUrlGeneral.php b/src/AutoLoginUrlGeneral.php
index 231eb13..7648e42 100644
--- a/src/AutoLoginUrlGeneral.php
+++ b/src/AutoLoginUrlGeneral.php
@@ -56,10 +56,10 @@ class AutoLoginUrlGeneral {
     // Log error.
     \Drupal::logger('auto_login_url')
       ->error('Failed Auto Login URL from ip: @ip and hash: @hash',
-        array(
+        [
           '@ip' => \Drupal::request()->getClientIp(),
           '@hash' => $hash
-        ));
+        ]);
   }
 
   /**
diff --git a/src/AutoLoginUrlLogin.php b/src/AutoLoginUrlLogin.php
index aba7f0d..b4096d0 100644
--- a/src/AutoLoginUrlLogin.php
+++ b/src/AutoLoginUrlLogin.php
@@ -48,7 +48,7 @@ class AutoLoginUrlLogin {
 
     // Get if the hash is in the db.
     $result = $connection->select('auto_login_url', 'a')
-      ->fields('a', array('id', 'uid', 'destination'))
+      ->fields('a', ['id', 'uid', 'destination'])
       ->condition('hash', Crypt::hmacBase64($hash, $key), '=')
       ->execute()
       ->fetchAssoc();
@@ -59,14 +59,14 @@ class AutoLoginUrlLogin {
 
       // Update the user table timestamp noting user has logged in.
       $connection->update('users_field_data')
-        ->fields(array('login' => time()))
+        ->fields(['login' => time()])
         ->condition('uid', $result['uid'])
         ->execute();
 
       // Delete auto login URL, if option checked.
       if ($config->get('delete')) {
         $connection->delete('auto_login_url')
-          ->condition('id', array($result['id']))
+          ->condition('id', [$result['id']])
           ->execute();
       }
 
diff --git a/src/Form/ConfigForm.php b/src/Form/ConfigForm.php
index cf1c57f..81536e4 100644
--- a/src/Form/ConfigForm.php
+++ b/src/Form/ConfigForm.php
@@ -21,31 +21,30 @@ class ConfigForm extends ConfigFormBase {
     $config = $this->config('auto_login_url.settings');
 
     // Secret word.
-    $form['auto_login_url_secret'] = array(
+    $form['auto_login_url_secret'] = [
       '#type' => 'textfield',
       '#title' => $this->t('Secret word'),
       '#required' => TRUE,
       '#default_value' => \Drupal::service('auto_login_url.general')->getSecret(),
       '#description' => $this->t('Secret word to create hashes that are stored in DB.
         Every time this changes all previous URLs are invalidated.'),
-    );
+    ];
 
     // Expiration.
-    $form['auto_login_url_expiration'] = array(
-      '#type' => 'textfield',
+    $form['auto_login_url_expiration'] = [
       '#title' => $this->t('Expiration'),
       '#required' => TRUE,
       '#default_value' => $config->get('expiration'),
       '#description' => $this->t('Expiration of URLs in seconds.'),
-    );
+    ];
 
     // Delete URLs on use.
-    $form['auto_login_url_delete_on_use'] = array(
+    $form['auto_login_url_delete_on_use'] = [
       '#type' => 'checkbox',
       '#title' => $this->t('Delete on use'),
       '#default_value' => $config->get('delete'),
       '#description' => $this->t('Auto delete URLs after use.'),
-    );
+    ];
 
     // Token length.
     $form['auto_login_url_token_length'] = array(
