diff --git a/src/EventSubscriber/StatisticsCounterSubscriber.php b/src/EventSubscriber/StatisticsCounterSubscriber.php
index 781fd7e..ae3918e 100644
--- a/src/EventSubscriber/StatisticsCounterSubscriber.php
+++ b/src/EventSubscriber/StatisticsCounterSubscriber.php
@@ -38,12 +38,12 @@ class StatisticsCounterSubscriber implements EventSubscriberInterface {
       // We are counting content views.
       // A node has been viewed, so update the node's counters.
       db_merge('node_counter')
-        ->key(array('nid' => $node->id()))
-        ->fields(array(
+        ->key(['nid' => $node->id()])
+        ->fields([
           'weekcount' => 1,
           'monthcount' => 1,
           'yearcount' => 1,
-        ))
+        ])
         ->expression('weekcount', 'weekcount + 1')
         ->expression('monthcount', 'monthcount + 1')
         ->expression('yearcount', 'yearcount + 1')
diff --git a/statistics_counter.module b/statistics_counter.module
index e25997d..d031e4c 100644
--- a/statistics_counter.module
+++ b/statistics_counter.module
@@ -22,7 +22,7 @@ function statistics_counter_cron() {
   $last_month = date('n', $timestamp) | 0;
   $last_year = date('Y', $timestamp) | 0;
 
-  $fields = array();
+  $fields = [];
 
   if ($week != $last_week || $year != $last_year) {
     // Reset week counts.
@@ -53,27 +53,27 @@ function statistics_counter_cron() {
  * Implements hook_entity_property_info_alter().
  */
 function statistics_counter_entity_property_info_alter(&$info) {
-  $info['node']['properties']['weekcount'] = array(
+  $info['node']['properties']['weekcount'] = [
     'type' => 'integer',
     'label' => t('Week node view counter'),
     'description' => t('The total number of times the node has been viewed this week.'),
     'sanitized' => TRUE,
     'getter callback' => 'statistics_counter_weekcount_getter_callback',
-  );
-  $info['node']['properties']['monthcount'] = array(
+  ];
+  $info['node']['properties']['monthcount'] = [
     'type' => 'integer',
     'label' => t('Month node view counter'),
     'description' => t('The total number of times the node has been viewed this month.'),
     'sanitized' => TRUE,
     'getter callback' => 'statistics_counter_monthcount_getter_callback',
-  );
-  $info['node']['properties']['yearcount'] = array(
+  ];
+  $info['node']['properties']['yearcount'] = [
     'type' => 'integer',
     'label' => t('Year node view counter'),
     'description' => t('The total number of times the node has been viewed this year.'),
     'sanitized' => TRUE,
     'getter callback' => 'statistics_counter_yearcount_getter_callback',
-  );
+  ];
 }
 
 /**
@@ -134,7 +134,7 @@ function statistics_counter_yearcount_getter_callback($item) {
  */
 function _statistics_counter_getter_callback($nid, $counter) {
   return db_select('node_counter', 'nc')
-    ->fields('nc', array($counter))
+    ->fields('nc', [$counter])
     ->condition('nid', $nid)
     ->execute()
     ->fetchField() | 0;
diff --git a/statistics_counter.views.inc b/statistics_counter.views.inc
index 19cd2ed..a1e1586 100644
--- a/statistics_counter.views.inc
+++ b/statistics_counter.views.inc
@@ -14,59 +14,59 @@ function statistics_counter_views_data_alter(&$data) {
   }
 
   // Week counts.
-  $data['node_counter']['weekcount'] = array(
+  $data['node_counter']['weekcount'] = [
     'title' => t('Views this week'),
     'help' => t('The total number of times the node has been viewed this week.'),
-    'field' => array(
+    'field' => [
       'id' => 'numeric',
       'click sortable' => TRUE,
-    ),
-    'filter' => array(
+    ],
+    'filter' => [
       'id' => 'numeric',
-    ),
-    'argument' => array(
+    ],
+    'argument' => [
       'id' => 'numeric',
-    ),
-    'sort' => array(
+    ],
+    'sort' => [
       'id' => 'standard',
-    ),
-  );
+    ],
+  ];
 
   // Month counts.
-  $data['node_counter']['monthcount'] = array(
+  $data['node_counter']['monthcount'] = [
     'title' => t('Views this month'),
     'help' => t('The total number of times the node has been viewed this month.'),
-    'field' => array(
+    'field' => [
       'id' => 'numeric',
       'click sortable' => TRUE,
-    ),
-    'filter' => array(
+    ],
+    'filter' => [
       'id' => 'numeric',
-    ),
-    'argument' => array(
+    ],
+    'argument' => [
       'id' => 'numeric',
-    ),
-    'sort' => array(
+    ],
+    'sort' => [
       'id' => 'standard',
-    ),
-  );
+    ],
+  ];
 
   // Year counts.
-  $data['node_counter']['yearcount'] = array(
+  $data['node_counter']['yearcount'] = [
     'title' => t('Views this year'),
     'help' => t('The total number of times the node has been viewed this year.'),
-    'field' => array(
+    'field' => [
       'id' => 'numeric',
       'click sortable' => TRUE,
-    ),
-    'filter' => array(
+    ],
+    'filter' => [
       'id' => 'numeric',
-    ),
-    'argument' => array(
+    ],
+    'argument' => [
       'id' => 'numeric',
-    ),
-    'sort' => array(
+    ],
+    'sort' => [
       'id' => 'standard',
-    ),
-  );
+    ],
+  ];
 }
