diff --git a/restui.module b/restui.module
index cd2139f..543b793 100644
--- a/restui.module
+++ b/restui.module
@@ -21,13 +21,13 @@ function restui_help($route_name, RouteMatchInterface $route_match) {
  * Implements hook_theme().
  */
 function restui_theme() {
-  return array(
+  return [
     // List resources.
-    'restui_resource_info' => array(
-      'variables' => array('resource' => array()),
+    'restui_resource_info' => [
+      'variables' => ['resource' => []],
       'template' => 'restui-resource-info',
-    ),
-  );
+    ],
+  ];
 }
 
 /**
diff --git a/src/Controller/RestUIController.php b/src/Controller/RestUIController.php
index 9cf746a..8de43c8 100644
--- a/src/Controller/RestUIController.php
+++ b/src/Controller/RestUIController.php
@@ -79,7 +79,7 @@ class RestUIController implements ContainerInjectionInterface {
     // Strip out the nested method configuration, we are only interested in the
     // plugin IDs of the resources.
     $enabled_resources = array_combine(array_keys($config), array_keys($config));
-    $available_resources = array('enabled' => array(), 'disabled' => array());
+    $available_resources = ['enabled' => [], 'disabled' => []];
     $resources = $this->resourcePluginManager->getDefinitions();
     foreach ($resources as $id => $resource) {
       $status = in_array($this->getResourceKey($id), $enabled_resources) ? 'enabled' : 'disabled';
@@ -98,41 +98,41 @@ class RestUIController implements ContainerInjectionInterface {
     }
 
     // Heading.
-    $list['resources_title'] = array(
+    $list['resources_title'] = [
       '#markup' => '<h2>' . $this->t('REST resources') . '</h2>',
-    );
-    $list['resources_help'] = array(
+    ];
+    $list['resources_help'] = [
       '#markup' => '<p>' . $this->t('Here you can enable and disable available resources. Once a resource has been enabled, you can restrict its formats and authentication by clicking on its "Edit" link.') . '</p>',
-    );
+    ];
     $list['enabled']['heading']['#markup'] = '<h2>' . $this->t('Enabled') . '</h2>';
     $list['disabled']['heading']['#markup'] = '<h2>' . $this->t('Disabled') . '</h2>';
 
     // List of resources.
-    foreach (array('enabled', 'disabled') as $status) {
+    foreach (['enabled', 'disabled'] as $status) {
       $list[$status]['#type'] = 'container';
-      $list[$status]['#attributes'] = array('class' => array('rest-ui-list-section', $status));
-      $list[$status]['table'] = array(
+      $list[$status]['#attributes'] = ['class' => ['rest-ui-list-section', $status]];
+      $list[$status]['table'] = [
         '#theme' => 'table',
-        '#header' => array(
-          'resource_name' => array(
+        '#header' => [
+          'resource_name' => [
             'data' => $this->t('Resource name'),
-            'class' => array('rest-ui-name'),
-          ),
-          'path' => array(
+            'class' => ['rest-ui-name'],
+          ],
+          'path' => [
             'data' => $this->t('Path'),
-            'class' => array('views-ui-path'),
-          ),
-          'description' => array(
+            'class' => ['views-ui-path'],
+          ],
+          'description' => [
             'data' => $this->t('Description'),
-            'class' => array('rest-ui-description'),
-          ),
-          'operations' => array(
+            'class' => ['rest-ui-description'],
+          ],
+          'operations' => [
             'data' => $this->t('Operations'),
-            'class' => array('rest-ui-operations'),
-          ),
-        ),
-        '#rows' => array(),
-      );
+            'class' => ['rest-ui-operations'],
+          ],
+        ],
+        '#rows' => [],
+      ];
       foreach ($available_resources[$status] as $id => $resource) {
         $uri_paths = '';
         if (!empty($resource['uri_paths']['canonical'])) {
@@ -141,55 +141,55 @@ class RestUIController implements ContainerInjectionInterface {
 
         // @todo Remove this when https://www.drupal.org/node/2300677 is fixed.
         $is_config_entity = isset($resource['serialization_class']) && is_subclass_of($resource['serialization_class'], \Drupal\Core\Config\Entity\ConfigEntityInterface::class, TRUE);
-        $list[$status]['table']['#rows'][$id] = array(
-          'data' => array(
+        $list[$status]['table']['#rows'][$id] = [
+          'data' => [
             'name' => !$is_config_entity ? $resource['label'] : $this->t('@label <sup>(read-only)</sup>', ['@label' => $resource['label']]),
-            'path' => array(
-              'data' => array(
+            'path' => [
+              'data' => [
                 '#type' => 'inline_template',
                 '#template' => $uri_paths,
-              ),
-            ),
-            'description' => array(),
-            'operations' => array(),
-          ),
-        );
+              ],
+            ],
+            'description' => [],
+            'operations' => [],
+          ],
+        ];
 
         if ($status == 'disabled') {
-          $list[$status]['table']['#rows'][$id]['data']['operations']['data'] = array(
+          $list[$status]['table']['#rows'][$id]['data']['operations']['data'] = [
             '#type' => 'operations',
-            '#links' => array(
-              'enable' => array(
+            '#links' => [
+              'enable' => [
                 'title' => $this->t('Enable'),
-                'url' => Url::fromRoute('restui.edit', array('resource_id' => $id)),
-              ),
-            ),
-          );
+                'url' => Url::fromRoute('restui.edit', ['resource_id' => $id]),
+              ],
+            ],
+          ];
         }
         else {
-          $list[$status]['table']['#rows'][$id]['data']['operations']['data'] = array(
+          $list[$status]['table']['#rows'][$id]['data']['operations']['data'] = [
             '#type' => 'operations',
-            '#links' => array(
-              'edit' => array(
+            '#links' => [
+              'edit' => [
                 'title' => $this->t('Edit'),
-                'url' => Url::fromRoute('restui.edit', array('resource_id' => $id)),
+                'url' => Url::fromRoute('restui.edit', ['resource_id' => $id]),
 
-              ),
-              'disable' => array(
+              ],
+              'disable' => [
                 'title' => $this->t('Disable'),
-                'url' => Url::fromRoute('restui.disable', array('resource_id' => $id)),
-              ),
-              'permissions' => array(
+                'url' => Url::fromRoute('restui.disable', ['resource_id' => $id]),
+              ],
+              'permissions' => [
                 'title' => $this->t('Permissions'),
-                'url' => Url::fromRoute('user.admin_permissions', array(), array('fragment' => 'module-rest')),
-              ),
-            ),
-          );
+                'url' => Url::fromRoute('user.admin_permissions', [], ['fragment' => 'module-rest']),
+              ],
+            ],
+          ];
 
-          $list[$status]['table']['#rows'][$id]['data']['description']['data'] = array(
+          $list[$status]['table']['#rows'][$id]['data']['description']['data'] = [
             '#theme' => 'restui_resource_info',
             '#resource' => $config[$this->getResourceKey($id)]->get('configuration'),
-          );
+          ];
         }
       }
     }
@@ -221,7 +221,7 @@ class RestUIController implements ContainerInjectionInterface {
     }
 
     // Redirect back to the page.
-    return new RedirectResponse($this->urlGenerator->generate('restui.list', array(), TRUE));
+    return new RedirectResponse($this->urlGenerator->generate('restui.list', [], TRUE));
   }
 
   /**
diff --git a/src/Form/RestUIForm.php b/src/Form/RestUIForm.php
index 34faeac..e6ac3e7 100644
--- a/src/Form/RestUIForm.php
+++ b/src/Form/RestUIForm.php
@@ -137,47 +137,47 @@ class RestUIForm extends ConfigFormBase {
     $pluginDefinition = $plugin->getPluginDefinition();
     $form['#title'] = $this->t('Settings for resource %label', ['%label' => $pluginDefinition['label']]);
     $form['#tree'] = TRUE;
-    $form['resource_id'] = array('#type' => 'value', '#value' => $resource_id);
-    $form['methods'] = array('#type' => 'container');
+    $form['resource_id'] = ['#type' => 'value', '#value' => $resource_id];
+    $form['methods'] = ['#type' => 'container'];
 
     $authentication_providers = array_keys($this->authenticationCollector->getSortedProviders());
     $authentication_providers = array_combine($authentication_providers, $authentication_providers);
     $format_options = array_combine($this->formats, $this->formats);
     foreach ($methods as $method) {
-      $group = array();
-      $group[$method] = array(
+      $group = [];
+      $group[$method] = [
         '#title' => $method,
         '#type' => 'checkbox',
         '#default_value' => isset($config[$method]),
-      );
-      $group['settings'] = array(
+      ];
+      $group['settings'] = [
         '#type' => 'container',
-        '#attributes' => array('style' => 'padding-left:20px'),
-      );
+        '#attributes' => ['style' => 'padding-left:20px'],
+      ];
 
       // Available request formats.
-      $enabled_formats = array();
+      $enabled_formats = [];
       if (isset($config[$method]['supported_formats'])) {
         $enabled_formats = $config[$method]['supported_formats'];
       }
-      $group['settings']['formats'] = array(
+      $group['settings']['formats'] = [
         '#type' => 'checkboxes',
         '#title' => $this->t('Accepted request formats'),
         '#options' => $format_options,
         '#default_value' => $enabled_formats,
-      );
+      ];
 
       // Authentication providers.
-      $enabled_auth = array();
+      $enabled_auth = [];
       if (isset($config[$method]['supported_auth'])) {
         $enabled_auth = $config[$method]['supported_auth'];
       }
-      $group['settings']['auth'] = array(
+      $group['settings']['auth'] = [
         '#title' => $this->t('Authentication providers'),
         '#type' => 'checkboxes',
         '#options' => $authentication_providers,
         '#default_value' => $enabled_auth,
-      );
+      ];
       $form['methods'][$method] = $group;
     }
     return parent::buildForm($form, $form_state);
@@ -197,11 +197,11 @@ class RestUIForm extends ConfigFormBase {
         // At least one format and authentication provider must be selected.
         $formats = array_filter($values['settings']['formats']);
         if (empty($formats)) {
-          $form_state->setErrorByName('methods][' . $method . '][settings][formats', $this->t('At least one format must be selected for method @method.', array('@method' => $method)));
+          $form_state->setErrorByName('methods][' . $method . '][settings][formats', $this->t('At least one format must be selected for method @method.', ['@method' => $method]));
         }
         $auth = array_filter($values['settings']['auth']);
         if (empty($auth)) {
-          $form_state->setErrorByName('methods][' . $method . '][settings][auth', $this->t('At least one authentication provider must be selected for method @method.', array('@method' => $method)));
+          $form_state->setErrorByName('methods][' . $method . '][settings][auth', $this->t('At least one authentication provider must be selected for method @method.', ['@method' => $method]));
         }
       }
     }
diff --git a/tests/src/Functional/RestUITest.php b/tests/src/Functional/RestUITest.php
index 6238ede..09fc57f 100644
--- a/tests/src/Functional/RestUITest.php
+++ b/tests/src/Functional/RestUITest.php
@@ -14,7 +14,7 @@ class RestUITest extends BrowserTestBase {
   /**
    * {@inheritdoc}
    */
-  public static $modules = array('node', 'restui');
+  public static $modules = ['node', 'restui'];
 
   /**
    * {@inheritdoc}
@@ -23,7 +23,7 @@ class RestUITest extends BrowserTestBase {
     parent::setUp();
 
     // Create a user with permissions to manage.
-    $permissions = array('administer site configuration', 'administer rest resources');
+    $permissions = ['administer site configuration', 'administer rest resources'];
     $account = $this->drupalCreateUser($permissions);
 
     // Initiate user session.
