summaryrefslogtreecommitdiffstats
path: root/core/lib/Drupal/Core/Render
diff options
context:
space:
mode:
authorxjm2017-09-15 21:52:14 (GMT)
committerxjm2017-09-15 21:52:14 (GMT)
commit44a5c4cbe08a0e80209dc6c5ac688a247e36ca11 (patch)
tree26106647bb5dac7f2d89186353d4b4086c9e6823 /core/lib/Drupal/Core/Render
parentcc34cb8055821db244e9a916e7f31cca7ead115f (diff)
Issue #2901739 by andriyun, Jo Fitzgerald, mfernea, xjm: Fix 'Squiz.Arrays.ArrayDeclaration' coding standard
Diffstat (limited to 'core/lib/Drupal/Core/Render')
-rw-r--r--core/lib/Drupal/Core/Render/HtmlResponse.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/core/lib/Drupal/Core/Render/HtmlResponse.php b/core/lib/Drupal/Core/Render/HtmlResponse.php
index 555e504..763696d 100644
--- a/core/lib/Drupal/Core/Render/HtmlResponse.php
+++ b/core/lib/Drupal/Core/Render/HtmlResponse.php
@@ -31,9 +31,11 @@ class HtmlResponse extends Response implements CacheableResponseInterface, Attac
// A render array can automatically be converted to a string and set the
// necessary metadata.
if (is_array($content) && (isset($content['#markup']))) {
- $content += ['#attached' => [
- 'html_response_attachment_placeholders' => [],
- 'placeholders' => []],
+ $content += [
+ '#attached' => [
+ 'html_response_attachment_placeholders' => [],
+ 'placeholders' => [],
+ ],
];
$this->addCacheableDependency(CacheableMetadata::createFromRenderArray($content));
$this->setAttachments($content['#attached']);