summaryrefslogtreecommitdiffstats
path: root/core/authorize.php
diff options
context:
space:
mode:
authorxjm2017-03-04 01:20:24 (GMT)
committerxjm2017-03-04 01:20:24 (GMT)
commit52e3eec616efab4d5201e30d085a09ba5c4817e6 (patch)
treed295cc8b862edc04018ba0e04ded752fd1a2f5c6 /core/authorize.php
parent3aba956a39a4852f42cad8483e4e6e307bedbd0e (diff)
Issue #2776975 by joelpittet, dawehner, tim.plunkett, xjm, pfrenssen: March 3, 2017: Convert core to array syntax coding standards for Drupal 8.3.x RC phase
Diffstat (limited to 'core/authorize.php')
-rw-r--r--core/authorize.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/core/authorize.php b/core/authorize.php
index 073770a..a72e0ac 100644
--- a/core/authorize.php
+++ b/core/authorize.php
@@ -116,10 +116,10 @@ if ($is_allowed) {
drupal_set_message($results['page_message']['message'], $results['page_message']['type']);
}
- $content['authorize_report'] = array(
+ $content['authorize_report'] = [
'#theme' => 'authorize_report',
'#messages' => $results['messages'],
- );
+ ];
if (is_array($results['tasks'])) {
$links = $results['tasks'];
@@ -148,11 +148,11 @@ if ($is_allowed) {
];
}
- $content['next_steps'] = array(
+ $content['next_steps'] = [
'#theme' => 'item_list',
'#items' => $links,
'#title' => t('Next steps'),
- );
+ ];
}
// If a batch is running, let it run.
elseif ($request->query->has('batch')) {
@@ -189,9 +189,9 @@ else {
}
$bare_html_page_renderer = \Drupal::service('bare_html_page_renderer');
-$response = $bare_html_page_renderer->renderBarePage($content, $page_title, 'maintenance_page', array(
+$response = $bare_html_page_renderer->renderBarePage($content, $page_title, 'maintenance_page', [
'#show_messages' => $show_messages,
-));
+]);
if (!$is_allowed) {
$response->setStatusCode(403);
}