diff --git a/restui.module b/restui.module
index 48b27c6..0c90041 100644
--- a/restui.module
+++ b/restui.module
@@ -21,14 +21,14 @@ 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(
-        'granularity' => array(),
-        'configuration' => array(),
-        ),
+    'restui_resource_info' => [
+      'variables' => [
+        'granularity' => [],
+        'configuration' => [],
+      ],
       'template' => 'restui-resource-info',
-    ),
-  );
+    ],
+  ];
 }
diff --git a/src/Controller/RestUIController.php b/src/Controller/RestUIController.php
index e73b435..5fa3c57 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) {
       $key = $this->getResourceKey($id);
@@ -99,41 +99,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'])) {
@@ -142,56 +142,56 @@ 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',
             '#granularity' => $config[$this->getResourceKey($id)]->get('granularity'),
             '#configuration' => $config[$this->getResourceKey($id)]->get('configuration'),
-          );
+          ];
         }
       }
     }
@@ -223,7 +223,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 344bc11..aed3a01 100644
--- a/src/Form/RestUIForm.php
+++ b/src/Form/RestUIForm.php
@@ -161,7 +161,7 @@ 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['resource_id'] = ['#type' => 'value', '#value' => $resource_id];
 
 
     $authentication_providers = array_keys($this->authenticationCollector->getSortedProviders());
@@ -171,25 +171,25 @@ class RestUIForm extends ConfigFormBase {
     $granularity = $this->getGranularity($id, $form_state);
 
     // Granularity selection.
-    $form['granularity'] = array(
+    $form['granularity'] = [
       '#title' => t('Granularity'),
       '#type' => 'select',
-      '#options' => array(
+      '#options' => [
         RestResourceConfigInterface::RESOURCE_GRANULARITY => $this->t('Resource'),
         RestResourceConfigInterface::METHOD_GRANULARITY => $this->t('Method'),
-      ),
+      ],
       '#default_value' => $granularity,
-      '#ajax' => array(
+      '#ajax' => [
         'callback' => '::processAjaxForm',
         'wrapper' => 'wrapper',
-      ),
-    );
+      ],
+    ];
 
     // Wrapper for ajax callback.
-    $form['wrapper'] = array(
+    $form['wrapper'] = [
       '#type' => 'container',
-      '#attributes' => array('id' => 'wrapper'),
-    );
+      '#attributes' => ['id' => 'wrapper'],
+    ];
 
     $form['wrapper'] += ($granularity === RestResourceConfigInterface::RESOURCE_GRANULARITY)
       ? $this->buildConfigurationFormForResourceGranularity($plugin, $authentication_providers, $format_options, $config)
@@ -220,47 +220,47 @@ class RestUIForm extends ConfigFormBase {
     $form = [];
 
     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'];
       }
       $method_checkbox_selector = ':input[name="wrapper[methods][' . $method . '][' . $method . ']"]';
-      $states_show_if_method_is_enabled = array(
-        'visible' => array($method_checkbox_selector=> array('checked' => TRUE)),
-        'invisible' => array($method_checkbox_selector=> array('checked' => FALSE)),
-      );
-      $group['settings']['formats'] = array(
+      $states_show_if_method_is_enabled = [
+        'visible' => [$method_checkbox_selector => ['checked' => TRUE]],
+        'invisible' => [$method_checkbox_selector => ['checked' => FALSE]],
+      ];
+      $group['settings']['formats'] = [
         '#type' => 'checkboxes',
         '#title' => $this->t('Accepted request formats'),
         '#options' => $format_options,
         '#default_value' => $enabled_formats,
         '#states' => $states_show_if_method_is_enabled,
-      );
+      ];
 
       // 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,
         '#states' => $states_show_if_method_is_enabled,
-      );
+      ];
       $form['methods'][$method] = $group;
     }
     return $form;
@@ -289,44 +289,44 @@ class RestUIForm extends ConfigFormBase {
     $form = [];
 
     // Methods.
-    $enabled_methods = array();
+    $enabled_methods = [];
     foreach ($methods as $method) {
       if (isset($config['methods']) && in_array($method, $config['methods'])) {
         $enabled_methods[$method] = $method;
       }
     }
-    $form['settings']['methods'] = array(
+    $form['settings']['methods'] = [
       '#type' => 'checkboxes',
       '#title' => $this->t('Methods'),
       '#options' => $method_options,
       '#default_value' => $enabled_methods,
-    );
+    ];
 
     // Formats.
-    $enabled_formats = array();
+    $enabled_formats = [];
     if (isset($config['formats'])) {
       $enabled_formats = $config['formats'];
     }
 
-    $form['settings']['formats'] = array(
+    $form['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['authentication'])) {
       $enabled_auth = $config['authentication'];
     }
 
-    $form['settings']['authentication'] = array(
+    $form['settings']['authentication'] = [
       '#title' => $this->t('Authentication providers'),
       '#type' => 'checkboxes',
       '#options' => $authentication_providers,
       '#default_value' => $enabled_auth,
-    );
+    ];
 
     return $form;
   }
@@ -356,17 +356,17 @@ class RestUIForm extends ConfigFormBase {
   protected function validateFormValuesForMethodGranularity(FormStateInterface $form_state) {
     // At least one method must be checked.
     $method_checked = FALSE;
-    foreach ($form_state->getValue(array('wrapper', 'methods')) as $method => $values) {
+    foreach ($form_state->getValue(['wrapper', 'methods']) as $method => $values) {
       if ($values[$method]) {
         $method_checked = TRUE;
         // 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]));
         }
       }
     }
@@ -384,7 +384,7 @@ class RestUIForm extends ConfigFormBase {
    * @see \Drupal\restui\Form\RestUIForm::validateForm()
    */
   protected function validateFormValuesForResourceGranularity(FormStateInterface $form_state) {
-    $settings = $form_state->getValue(array('wrapper', 'settings'));
+    $settings = $form_state->getValue(['wrapper', 'settings']);
 
     if (empty(array_filter($settings['methods']))) {
       $form_state->setErrorByName('methods', $this->t('At least one HTTP method must be selected.'));
@@ -433,7 +433,7 @@ class RestUIForm extends ConfigFormBase {
    */
   protected static function getConfigurationForMethodGranularity(FormStateInterface $form_state) {
     $configuration = [];
-    $methods = $form_state->getValue(array('wrapper', 'methods'));
+    $methods = $form_state->getValue(['wrapper', 'methods']);
     foreach ($methods as $method => $settings) {
       if ($settings[$method]) {
         $configuration[$method] = [
@@ -458,7 +458,7 @@ class RestUIForm extends ConfigFormBase {
    *   The value for the 'configuration' key in a REST Resource config entity.
    */
   protected static function getConfigurationForResourceGranularity(FormStateInterface $form_state) {
-    $settings = $form_state->getValue(array('wrapper', 'settings'));
+    $settings = $form_state->getValue(['wrapper', 'settings']);
     $configuration = [
       'methods' => array_keys(array_filter($settings['methods'])),
       'formats' => array_keys(array_filter($settings['formats'])),
diff --git a/tests/src/Functional/RestUITest.php b/tests/src/Functional/RestUITest.php
index 07fd96d..2f5d9d2 100644
--- a/tests/src/Functional/RestUITest.php
+++ b/tests/src/Functional/RestUITest.php
@@ -15,7 +15,7 @@ class RestUITest extends JavascriptTestBase {
   /**
    * {@inheritdoc}
    */
-  public static $modules = array('node', 'restui');
+  public static $modules = ['node', 'restui'];
 
   /**
    * {@inheritdoc}
@@ -24,7 +24,10 @@ class RestUITest extends JavascriptTestBase {
     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.
