diff --git a/captcha_free.module b/captcha_free.module
index 2187e2e..944fcc5 100644
--- a/captcha_free.module
+++ b/captcha_free.module
@@ -39,21 +39,21 @@ function captcha_free_form_alter(&$form, FormStateInterface $form_state, $form_i
   }
 
   // Add settings into drupalSettings.
-  $js = array(
+  $js = [
       'path' => $path,
       'selector' => $selector_id,
-    );
+    ];
   $form['#attached']['drupalSettings']['captchaFree'] = $js;
 
   // Don't cache the form.
   $form_state->getValues()['no_cache'] = TRUE;
   // Add warning when JavaScript is not detected.
-  $form['nojavascript'] = array(
+  $form['nojavascript'] = [
     '#prefix' => '<p class="warning">',
     '#markup' => '<span style="color:#FC0505;">' . t('You must have JavaScript enabled to use this form.'),
     '#suffix' => '</span></p>',
     '#weight' => -5,
-  );
+  ];
   if ($account->id() == 0) {
     // Give it a function for validation
     $form['#validate'][] = 'captcha_free_form_validate';
@@ -79,7 +79,7 @@ function captcha_free_get_protected_forms() {
       }
     }
       else {
-        $forms = array();
+        $forms = [];
       }
   }
   return $forms;
diff --git a/src/Form/CaptchaFreeSettingsForm.php b/src/Form/CaptchaFreeSettingsForm.php
index 422ef22..2a280e7 100644
--- a/src/Form/CaptchaFreeSettingsForm.php
+++ b/src/Form/CaptchaFreeSettingsForm.php
@@ -42,7 +42,7 @@ class CaptchaFreeSettingsForm implements FormInterface {
    * Implements \Drupal\Core\Form\FormInterface::buildForm().
    */
   public function buildForm(array $form, FormStateInterface $form_state) {
-  $form['captcha_free_secret_salt'] = array(
+  $form['captcha_free_secret_salt'] = [
     '#type' => 'textfield',
     '#title' => t('Secret Salt'),
     '#description' => t('Change this phrase to make your \'hash\' or token unique.<br />
@@ -53,8 +53,8 @@ class CaptchaFreeSettingsForm implements FormInterface {
     '#required' => TRUE,
     '#size' => 15,
     '#maxlength' => 15,
-  );
-  $form['captcha_free_time_out'] = array(
+  ];
+  $form['captcha_free_time_out'] = [
     '#type' => 'textfield',
     '#title' => t('Form Timeout'),
     '#description' => t('The number of minutes on the page that the form will be usable.<br />
@@ -65,8 +65,8 @@ class CaptchaFreeSettingsForm implements FormInterface {
     '#required' => TRUE,
     '#size' => 2,
     '#maxlength' => 2
-  );
-  $options = array(
+  ];
+  $options = [
     'contact_message_feedback_form' => 'Site-wide Contact Form', //ok
     'contact_message_personal_form' => 'User Contact Form', //ok
     'user_register_form' => 'User Register Form', //ok
@@ -74,8 +74,8 @@ class CaptchaFreeSettingsForm implements FormInterface {
     'comment' => 'All Comment Forms', //ok
     //'webform' => 'Webforms (All)', // waiting on d8 port of Webform module.
     'user_pass' => 'Password Request Form',//ok jQuery not called on user/password for some reason
- );
-  $form['protect_forms'] = array(
+ ];
+  $form['protect_forms'] = [
     '#type' => 'checkboxes',
     '#title' => t('Forms to protect'),
 '#description' => t('Select one or more from the list. Start with the User Register Form<br /> and add other forms as they start being targeted by bots.'),
@@ -83,12 +83,12 @@ class CaptchaFreeSettingsForm implements FormInterface {
     '#options' => $options,
     //'#weight' => 20,
     '#required' => TRUE,
- );
-  $form['actions']['submit'] = array(
+ ];
+  $form['actions']['submit'] = [
     '#type' => 'submit',
     '#value' => t('Save'),
     //'#weight' => 21,
- );
+ ];
  return $form;
 }
 
