diff --git a/grav_export.drush.inc b/grav_export.drush.inc
index ea732ec..efd4958 100644
--- a/grav_export.drush.inc
+++ b/grav_export.drush.inc
@@ -13,34 +13,34 @@ use League\HTMLToMarkdown\HtmlConverter;
  */
 function grav_export_drush_command() {
   // todo: allow single user export.
-  $commands['grav_export_users'] = array(
+  $commands['grav_export_users'] = [
     'callback' => 'drush_grav_export_users',
     'description' => 'Exports Drupal users to GravCMS yaml account files.',
-    'aliases' => array('graveu'),
-    'options' => array(
+    'aliases' => ['graveu'],
+    'options' => [
       'all' => 'Exports all Drupal users, even those currently disabled.',
-    ),
-    'examples' => array(
+    ],
+    'examples' => [
       'drush gravue' => 'Exports Drupal users to Grav account yaml files.',
       'drush gravue --all' => 'Exports all users, even those currently disabled/ blocked.',
-    ),
-  );
-  $commands['grav_export_roles'] = array(
+    ],
+  ];
+  $commands['grav_export_roles'] = [
     'callback' => 'drush_grav_export_roles',
     'description' => 'Exports Drupal roles to a Grav groups.yaml file.',
-    'aliases' => array('graver'),
-    'examples' => array(
+    'aliases' => ['graver'],
+    'examples' => [
       'drush gravre' => 'Exports Drupal roles to a Grav groups.yaml file.',
-    ),
-  );
-  $commands['grav_export_nodes'] = array(
+    ],
+  ];
+  $commands['grav_export_nodes'] = [
     'callback' => 'drush_grav_export_nodes',
     'description' => 'Exports Drupal nodes to Grav files.',
-    'aliases' => array('graven'),
-    'examples' => array(
+    'aliases' => ['graven'],
+    'examples' => [
       'drush gravre' => 'Exports Drupal roles to a Grav groups.yaml file.',
-    ),
-  );
+    ],
+  ];
   return $commands;
 }
 
@@ -87,7 +87,7 @@ function drush_grav_export_users() {
   $password_length = 16;
 
   $user_query = db_select('users', 'u');
-  $user_query->fields('u', array('uid'));
+  $user_query->fields('u', ['uid']);
   $user_query->condition('u.uid', 0, '!=');
   if (!$user_filter_all) {
     $user_query->condition('u.status', TRUE);
@@ -145,7 +145,7 @@ function drush_grav_export_nodes() {
   file_prepare_directory($export_folder, FILE_CREATE_DIRECTORY);
 
   $nids_query = db_select('node', 'n');
-  $nids_query->fields('n', array('nid'));
+  $nids_query->fields('n', ['nid']);
   if (!$node_filter_all){
     $nids_query->condition('n.status', '1', '=');
   }
@@ -157,7 +157,7 @@ function drush_grav_export_nodes() {
 
     // Create page folder
     $path_alias = db_select('url_alias', 'ua')
-      ->fields('ua', array('alias'))
+      ->fields('ua', ['alias'])
       ->condition('ua.source', 'node/' . $nid, '=')
       ->orderBy('ua.pid', 'DESC')
       ->execute()->fetchCol();
@@ -200,7 +200,7 @@ function drush_grav_export_nodes() {
  * @return array
  */
 function discoverContentTypeStructure($type) {
-  $fields = array();
+  $fields = [];
 
   return $fields;
 }
@@ -235,16 +235,16 @@ function convertUsernameDrupaltoGrav ($user) {
   mb_strtolower($username);
 
   // Replace invalid characters with underscore.
-  $patterns = array(
+  $patterns = [
     'space' => '/\ /',
     'period' => '/\./',
     'apostrophe' => '/\'/',
-  );
-  $replacements = array(
+  ];
+  $replacements = [
     'space' => '_',
     'period' => '_',
     'apostrophe' => '_',
-  );
+  ];
   $username = preg_replace($patterns, $replacements, $username);
 
   // Pad too small username accounts.
diff --git a/grav_export.module b/grav_export.module
index ce00c77..ab7c911 100644
--- a/grav_export.module
+++ b/grav_export.module
@@ -11,11 +11,11 @@
  * Creates a new permission for exporting content to GravCMS format.
  */
 function grav_export_permission() {
-  return array(
-    'administer grav_export' => array(
+  return [
+    'administer grav_export' => [
       'title' => t('Administer GravCMS export settings'),
       'description' => t('Perform administration tasks for GravCMS export.'),
-    ),
-  );
+    ],
+  ];
 
 }
