diff --git a/floodcontrol_settings_api.api.php b/floodcontrol_settings_api.api.php
index cd95131..15a09c2 100644
--- a/floodcontrol_settings_api.api.php
+++ b/floodcontrol_settings_api.api.php
@@ -12,25 +12,25 @@
  */
 function hook_floodcontrol_settings($form) {
 
-  $form['mycustomform'] = array(
+  $form['mycustomform'] = [
     '#type' => 'fieldset',
     '#title' => t('Settings for mycustomform'),
     '#collapsible' => TRUE,
     '#collapsed' => FALSE,
-  );
+  ];
 
-  $form['mycustomform']['floodcontrol_mycustomform_threshold'] = array(
+  $form['mycustomform']['floodcontrol_mycustomform_threshold'] = [
     '#type' => 'textfield',
     '#title' => t('Threshold (The maximum number of times each user can do this event per time window)'),
     '#default_value' => variable_get('floodcontrol_mycustomform_threshold', 100),
     '#size' => 10,
-  );
-  $form['mycustomform']['floodcontrol_mycustomform_window'] = array(
+  ];
+  $form['mycustomform']['floodcontrol_mycustomform_window'] = [
     '#type' => 'textfield',
     '#title' => t('Window (Number of seconds in the time window for this event (default is 3600 seconds, or 1 hour))'),
     '#default_value' => variable_get('floodcontrol_mycustomform_window', 3600),
     '#size' => 10,
-  );
+  ];
 
   return $form;
 }
diff --git a/floodcontrol_settings_api.module b/floodcontrol_settings_api.module
index 090d2e8..9684fd5 100644
--- a/floodcontrol_settings_api.module
+++ b/floodcontrol_settings_api.module
@@ -9,46 +9,46 @@
  * Implements hook_menu().
  */
 function floodcontrol_settings_api_menu() {
-  $items['admin/config/system/floodcontrol-settings-api'] = array(
+  $items['admin/config/system/floodcontrol-settings-api'] = [
     'title' => 'Flood Control settings',
     'description' => 'Flood control settings',
     'page callback' => 'floodcontrol_settings_page',
     'access callback' => 'user_access',
-    'access arguments' => array(
+    'access arguments' => [
       'administer site configuration',
-    ),
+    ],
     'file' => 'includes/floodcontrol_settings_api.admin.inc',
-  );
+  ];
 
-  $items['admin/config/system/floodcontrol-settings-api/default'] = array(
+  $items['admin/config/system/floodcontrol-settings-api/default'] = [
     'title' => 'Flood Control settings',
     'description' => 'Flood control settings',
     'type' => MENU_DEFAULT_LOCAL_TASK,
-    'access arguments' => array(
+    'access arguments' => [
       'administer site configuration',
-    ),
-  );
+    ],
+  ];
 
-  $items['admin/config/system/floodcontrol-settings-api/clear-flood'] = array(
+  $items['admin/config/system/floodcontrol-settings-api/clear-flood'] = [
     'title' => 'Clear Flood',
     'description' => 'This will clear the whole flood tables',
     'page callback' => 'floodcontrol_floodclear_page',
     'access callback' => 'user_access',
     'type' => MENU_LOCAL_TASK,
-    'access arguments' => array(
+    'access arguments' => [
       'administer site configuration',
-    ),
+    ],
     'file' => 'includes/floodcontrol_settings_api.admin.inc',
     'weight' => 1,
-  );
+  ];
 
-  $items['admin/config/system/floodcontrol-settings-api/clear-flood/bulk'] = array(
+  $items['admin/config/system/floodcontrol-settings-api/clear-flood/bulk'] = [
     'title' => 'Bulk delete flood table',
     'page callback' => 'drupal_get_form',
-    'page arguments' => array('flood_bulk_delete_confirm_form'),
-    'access arguments' => array('administer site configuration'),
+    'page arguments' => ['flood_bulk_delete_confirm_form'],
+    'access arguments' => ['administer site configuration'],
     'file' => 'includes/floodcontrol_settings_api.admin.inc',
-  );
+  ];
 
   return $items;
 }
diff --git a/includes/floodcontrol_settings_api.admin.inc b/includes/floodcontrol_settings_api.admin.inc
index 0b9ab3b..db41a4b 100644
--- a/includes/floodcontrol_settings_api.admin.inc
+++ b/includes/floodcontrol_settings_api.admin.inc
@@ -10,7 +10,7 @@
  */
 function floodcontrol_settings_api_form($form, &$form_state) {
 
-  $form = array();
+  $form = [];
   // This empty array will be filled with other modules who implement the hook.
   $form = module_invoke_all('floodcontrol_settings', $form);
   if (empty($form)) {
@@ -27,15 +27,15 @@ function floodcontrol_settings_api_form($form, &$form_state) {
  * Display the settings form.
  */
 function floodcontrol_settings_page() {
-  $output = array(
-    'intro' => array(
+  $output = [
+    'intro' => [
       '#type' => 'item',
       '#title' => t('Flood Control API - Settings'),
       '#markup' => 'If floodcontrol_api_settings API is implemented in your custom module, '
       . 'then your custom form settings appear here. Further details given in README.txt',
-    ),
+    ],
     'settings_form' => drupal_get_form('floodcontrol_settings_api_form'),
-  );
+  ];
 
   return $output;
 }
@@ -46,15 +46,15 @@ function floodcontrol_settings_page() {
  * Display the settings form.
  */
 function floodcontrol_floodclear_page() {
-  $output = array(
-    'intro' => array(
+  $output = [
+    'intro' => [
       '#type' => 'item',
       '#title' => t('Flood Control API - Clear flood'),
       '#markup' => 'Click on the submit button to clear the flood table. WARNING: '
       . 'This will unblock all the users. @TODO: Add event and identified based unblocking.',
-    ),
+    ],
     'floodclear_form' => drupal_get_form('floodclear_form'),
-  );
+  ];
 
   return $output;
 }
@@ -68,11 +68,11 @@ function floodcontrol_floodclear_page() {
  * @see floodclear_form_submit()
  */
 function floodclear_form($form, &$form_state) {
-  $form = array();
-  $form['actions']['delete'] = array(
+  $form = [];
+  $form['actions']['delete'] = [
     '#type' => 'submit',
     '#value' => t('Delete'),
-  );
+  ];
   return $form;
 }
 
