diff --git a/insert_view.module b/insert_view.module
index 6847a5f..8878e89 100644
--- a/insert_view.module
+++ b/insert_view.module
@@ -23,7 +23,7 @@ function insert_view_help($route_name, RouteMatchInterface $route_match) {
  */
 function _insert_view_substitute_tags($text) {
   if (preg_match_all("/\[view:([^=\]]+)=?([^=\]]+)?=?([^\]]*)?\]/i", $text, $match)) {
-    $search = $replace = array();
+    $search = $replace = [];
     foreach ($match[0] as $key => $value) {
       $view_name = $match[1][$key];
       $display_id = ($match[2][$key] && !is_numeric($match[2][$key])) ? $match[2][$key] : 'default';
@@ -78,7 +78,7 @@ function insert_view($view_name, $display_id = 'default', $args = '') {
     $args = str_replace("%$id", $arg, $args);
   }
   $args = preg_replace(',/?(%\d),', '', $args);
-  $args = $args ? explode('/', $args) : array();
+  $args = $args ? explode('/', $args) : [];
 
   return $view->preview($display_id, $args);
 }
