diff --git a/remote_stream_wrapper.install b/remote_stream_wrapper.install
index 2a33324..973812b 100644
--- a/remote_stream_wrapper.install
+++ b/remote_stream_wrapper.install
@@ -10,11 +10,11 @@
  */
 function remote_stream_wrapper_requirements() {
   $has_curl = function_exists('curl_init');
-  $requirements = array();
-  $requirements['curl'] = array(
+  $requirements = [];
+  $requirements['curl'] = [
     'title' => t('cURL'),
     'value' => $has_curl ? t('Enabled') : t('Not found'),
-  );
+  ];
   if (!$has_curl) {
     $requirements['curl']['severity'] = REQUIREMENT_ERROR;
     $requirements['curl']['description'] = t('The Remote Stream Wrapper module could not be installed because the PHP <a href="http://php.net/manual/curl.setup.php">cURL</a> library is not available.');
diff --git a/remote_stream_wrapper.test b/remote_stream_wrapper.test
index af66601..3ffaeac 100644
--- a/remote_stream_wrapper.test
+++ b/remote_stream_wrapper.test
@@ -6,15 +6,15 @@
 
 class RemoteStreamWrapperTestCase extends DrupalWebTestCase {
   public static function getInfo() {
-    return array(
+    return [
       'name' => 'Remote stream wrapper',
       'description' => 'Tests functionality for remote stream wrappers.',
       'group' => 'Remote stream wrapper',
-    );
+    ];
   }
 
   function setUp() {
-    parent::setUp(array('remote_stream_wrapper', 'image'));
+    parent::setUp(['remote_stream_wrapper', 'image']);
   }
 
   /**
@@ -33,19 +33,19 @@ class RemoteStreamWrapperTestCase extends DrupalWebTestCase {
    * Test STREAM_WRAPPERS_REMOTE bitmask and file_get_remote_stream_wrappers().
    */
   function testBitMasks() {
-    $cases = array(
-      array('filter' => STREAM_WRAPPERS_ALL, 'result' => TRUE),
-      array('filter' => STREAM_WRAPPERS_LOCAL, 'result' => TRUE),
-      array('filter' => STREAM_WRAPPERS_READ, 'result' => TRUE),
-      array('filter' => STREAM_WRAPPERS_WRITE, 'result' => FALSE),
-      array('filter' => STREAM_WRAPPERS_VISIBLE, 'result' => TRUE),
-      array('filter' => STREAM_WRAPPERS_HIDDEN, 'result' => FALSE),
-      array('filter' => STREAM_WRAPPERS_LOCAL_HIDDEN, 'result' => FALSE),
-      array('filter' => STREAM_WRAPPERS_WRITE_VISIBLE, 'result' => FALSE),
-      array('filter' => STREAM_WRAPPERS_READ_VISIBLE, 'result' => TRUE),
-      array('filter' => STREAM_WRAPPERS_NORMAL, 'result' => FALSE),
-      array('filter' => STREAM_WRAPPERS_LOCAL_NORMAL, 'result' => FALSE),
-    );
+    $cases = [
+      ['filter' => STREAM_WRAPPERS_ALL, 'result' => TRUE],
+      ['filter' => STREAM_WRAPPERS_LOCAL, 'result' => TRUE],
+      ['filter' => STREAM_WRAPPERS_READ, 'result' => TRUE],
+      ['filter' => STREAM_WRAPPERS_WRITE, 'result' => FALSE],
+      ['filter' => STREAM_WRAPPERS_VISIBLE, 'result' => TRUE],
+      ['filter' => STREAM_WRAPPERS_HIDDEN, 'result' => FALSE],
+      ['filter' => STREAM_WRAPPERS_LOCAL_HIDDEN, 'result' => FALSE],
+      ['filter' => STREAM_WRAPPERS_WRITE_VISIBLE, 'result' => FALSE],
+      ['filter' => STREAM_WRAPPERS_READ_VISIBLE, 'result' => TRUE],
+      ['filter' => STREAM_WRAPPERS_NORMAL, 'result' => FALSE],
+      ['filter' => STREAM_WRAPPERS_LOCAL_NORMAL, 'result' => FALSE],
+    ];
 
     foreach ($cases as $case) {
       $wrappers = file_get_stream_wrappers($case['filter']);
@@ -66,13 +66,13 @@ class RemoteStreamWrapperTestCase extends DrupalWebTestCase {
     $this->assertTrue(is_file($file->uri));
     $this->assertFalse(is_dir($file->uri));
     $this->assertEqual(filesize($file->uri), 125);
-    $this->assertEqual(image_get_info($file->uri), array(
+    $this->assertEqual(image_get_info($file->uri), [
       'width' => 40,
       'height' => 20,
       'extension' => 'png',
       'mime_type' => 'image/png',
       'file_size' => 125,
-    ));
+    ]);
   }
 
   /**
@@ -107,7 +107,7 @@ class RemoteStreamWrapperTestCase extends DrupalWebTestCase {
     file_save($file);
     $generated_uri = remote_stream_wrapper_image_style_path('thumbnail', $file->uri);
 
-    $output = theme('image_style', array('style_name' => 'thumbnail', 'path' => $file->uri));
+    $output = theme('image_style', ['style_name' => 'thumbnail', 'path' => $file->uri]);
     $this->drupalSetContent($output);
     $elements = $this->xpath('//img');
     $this->drupalGet($elements[0]['src']);
diff --git a/src/Routing/RemoteImageStyleRoutes.php b/src/Routing/RemoteImageStyleRoutes.php
index 7808b40..97c34ca 100644
--- a/src/Routing/RemoteImageStyleRoutes.php
+++ b/src/Routing/RemoteImageStyleRoutes.php
@@ -45,7 +45,7 @@ class RemoteImageStyleRoutes implements ContainerInjectionInterface {
    *   An array of route objects.
    */
   public function routes() {
-    $routes = array();
+    $routes = [];
 
     // Calling getWrappers() here returns an empty array here. Calling the
     // register method seems to resolve it.
@@ -68,13 +68,13 @@ class RemoteImageStyleRoutes implements ContainerInjectionInterface {
       // image.style_public route.
       $routes['image.style_' . $scheme] = new Route(
         '/' . $public_directory_path . '/styles/{image_style}/' . $scheme,
-        array(
+        [
           '_controller' => 'Drupal\remote_stream_wrapper\Controller\RemoteImageStyleDownloadController::deliver',
           'scheme' => $scheme,
-        ),
-        array(
+        ],
+        [
           '_access' => 'TRUE',
-        )
+        ]
       );
     }
 
diff --git a/src/StreamWrapper/HttpStreamWrapper.php b/src/StreamWrapper/HttpStreamWrapper.php
index 7e079d1..ed77d10 100644
--- a/src/StreamWrapper/HttpStreamWrapper.php
+++ b/src/StreamWrapper/HttpStreamWrapper.php
@@ -127,7 +127,7 @@ class HttpStreamWrapper implements RemoteStreamWrapperInterface {
    * {@inheritdoc}
    */
   public function stream_open($path, $mode, $options, &$opened_path) {
-    if (!in_array($mode, array('r', 'rb', 'rt'))) {
+    if (!in_array($mode, ['r', 'rb', 'rt'])) {
       if ($options & STREAM_REPORT_ERRORS) {
         trigger_error('stream_open() write modes not supported for HTTP stream wrappers', E_USER_WARNING);
       }
