diff --git a/fz152.module b/fz152.module
index fa7cb92..841df2a 100644
--- a/fz152.module
+++ b/fz152.module
@@ -10,15 +10,15 @@
  */
 function fz152_form_id_matches($form_id, $patterns) {
   // Replace new lines by "|" and wildcard by ".*".
-  $to_replace = array(
+  $to_replace = [
     '/(\r\n?|\n)/', // newlines
     '/\\\\\*/', // asterisks
-  );
+  ];
 
-  $replacements = array(
+  $replacements = [
     '|',
     '.*',
-  );
+  ];
 
   $patterns_quoted = preg_quote($patterns, '/');
   $pattern = '/^(' . preg_replace($to_replace, $replacements, $patterns_quoted) . ')$/';
@@ -60,27 +60,27 @@ function fz152_form_alter(array &$form, \Drupal\Core\Form\FormStateInterface $fo
       // Finally we add checkbox.
       $is_checkbox = $config->get('is_checkbox');
       if ($is_checkbox) {
-        $form['fz152_agreement'] = array(
+        $form['fz152_agreement'] = [
           '#type' => 'checkbox',
           '#required' => TRUE,
           '#title' => $config->get('checkbox_title'),
           // HTML5 support.
-          '#attributes' => array(
+          '#attributes' => [
             'required' => 'required',
-          ),
+          ],
           '#weight' => $checkbox_weight,
           '#element_validate' => [
             'fz152_agreement_element_validate',
           ],
-        );
+        ];
       }
       else {
-        $form['fz152_agreement'] = array(
+        $form['fz152_agreement'] = [
           '#name' => 'fz152-agreement',
           '#type' => 'item',
           '#markup' => $config->get('checkbox_title'),
           '#weight' => $checkbox_weight,
-        );
+        ];
       }
       $form['actions']['#weight'] = 110;
     }
diff --git a/src/Plugin/Fz152/Forms.php b/src/Plugin/Fz152/Forms.php
index f1b28e9..aadcdb4 100644
--- a/src/Plugin/Fz152/Forms.php
+++ b/src/Plugin/Fz152/Forms.php
@@ -32,14 +32,14 @@ class Forms extends Fz152PluginBase {
   public function getForms() {
     $config = \Drupal::config('fz152.forms');
     $forms_settings = $config->get('forms');
-    $forms = array();
+    $forms = [];
     if (!empty($forms_settings)) {
       foreach (explode(PHP_EOL, $forms_settings) as $form_id) {
         $form_id_exploded = explode('|', $form_id);
-        $forms[] = array(
+        $forms[] = [
           'form_id' => $form_id_exploded[0],
           'weight' => isset($form_id_exploded[1]) ? $form_id_exploded[1] : NULL,
-        );
+        ];
       }
     }
     return $forms;
