summaryrefslogtreecommitdiffstats
path: root/core/lib/Drupal/Core/Render
diff options
context:
space:
mode:
authorAlex Pott2018-05-11 09:40:33 (GMT)
committerAlex Pott2018-05-11 09:40:33 (GMT)
commitbe6d515cad09889002e5d55020b6bdce61c2c804 (patch)
treecc305043680f974001112c09244ea3cc12030c9d /core/lib/Drupal/Core/Render
parentb8f93d5b610cc5c6ba36d69bd8c1ec3b30ff7b25 (diff)
Issue #2572613 by Malevi4, idebr, pfrenssen, Mile23, RajeevK: Fix 'Drupal.Array.Array.CommaLastItem' coding standard
Diffstat (limited to 'core/lib/Drupal/Core/Render')
-rw-r--r--core/lib/Drupal/Core/Render/Element/SystemCompactLink.php2
-rw-r--r--core/lib/Drupal/Core/Render/MainContent/HtmlRenderer.php2
-rw-r--r--core/lib/Drupal/Core/Render/RenderCache.php2
-rw-r--r--core/lib/Drupal/Core/Render/Renderer.php2
4 files changed, 4 insertions, 4 deletions
diff --git a/core/lib/Drupal/Core/Render/Element/SystemCompactLink.php b/core/lib/Drupal/Core/Render/Element/SystemCompactLink.php
index 89f39a8..60b7277 100644
--- a/core/lib/Drupal/Core/Render/Element/SystemCompactLink.php
+++ b/core/lib/Drupal/Core/Render/Element/SystemCompactLink.php
@@ -65,7 +65,7 @@ class SystemCompactLink extends Link {
$element['#url'] = BaseUrl::fromRoute('system.admin_compact_page', ['mode' => 'off']);
$element['#options'] = [
'attributes' => ['title' => t('Expand layout to include descriptions.')],
- 'query' => \Drupal::destination()->getAsArray()
+ 'query' => \Drupal::destination()->getAsArray(),
];
}
else {
diff --git a/core/lib/Drupal/Core/Render/MainContent/HtmlRenderer.php b/core/lib/Drupal/Core/Render/MainContent/HtmlRenderer.php
index 5966668..13e9c76 100644
--- a/core/lib/Drupal/Core/Render/MainContent/HtmlRenderer.php
+++ b/core/lib/Drupal/Core/Render/MainContent/HtmlRenderer.php
@@ -226,7 +226,7 @@ class HtmlRenderer implements MainContentRendererInterface {
return $this->renderer->render($main_content, FALSE);
});
$main_content = $this->renderCache->getCacheableRenderArray($main_content) + [
- '#title' => isset($main_content['#title']) ? $main_content['#title'] : NULL
+ '#title' => isset($main_content['#title']) ? $main_content['#title'] : NULL,
];
}
diff --git a/core/lib/Drupal/Core/Render/RenderCache.php b/core/lib/Drupal/Core/Render/RenderCache.php
index 9ac3381..20e4b0c 100644
--- a/core/lib/Drupal/Core/Render/RenderCache.php
+++ b/core/lib/Drupal/Core/Render/RenderCache.php
@@ -259,7 +259,7 @@ class RenderCache implements RenderCacheInterface {
'#cache' => [
'keys' => $elements['#cache']['keys'],
'contexts' => $redirect_cacheability_updated->getCacheContexts(),
- ]
+ ],
];
$cid = $this->createCacheID($recalculated_cid_pseudo_element);
// Ensure the about-to-be-cached data uses the merged cache contexts.
diff --git a/core/lib/Drupal/Core/Render/Renderer.php b/core/lib/Drupal/Core/Render/Renderer.php
index bae83de..5e1b8d1 100644
--- a/core/lib/Drupal/Core/Render/Renderer.php
+++ b/core/lib/Drupal/Core/Render/Renderer.php
@@ -326,7 +326,7 @@ class Renderer implements RendererInterface {
// automatically by the Renderer. Adding them as though they are
// supported allows us to avoid throwing an exception 100% of the time.
'#weight',
- '#printed'
+ '#printed',
];
$unsupported_keys = array_diff(array_keys($elements), $supported_keys);
if (count($unsupported_keys)) {