summaryrefslogtreecommitdiffstats
path: root/core/modules/views_ui
diff options
context:
space:
mode:
authorNathaniel Catchpole2017-10-13 12:43:02 (GMT)
committerNathaniel Catchpole2017-10-13 12:43:02 (GMT)
commit2fc85e7f0fadc299e303134e569d0e9c144ee282 (patch)
tree874c4eab370f56becf0a7140102f5a585c3ee807 /core/modules/views_ui
parent3c76c819eff3889937587e2604585a66b98aeba4 (diff)
Issue #2901572 by Jo Fitzgerald, bluccas, mfernea, klausi: Fix 'Drupal.Commenting.PostStatementComment' coding standard
Diffstat (limited to 'core/modules/views_ui')
-rw-r--r--core/modules/views_ui/admin.inc3
-rw-r--r--core/modules/views_ui/src/Form/Ajax/RearrangeFilter.php3
2 files changed, 4 insertions, 2 deletions
diff --git a/core/modules/views_ui/admin.inc b/core/modules/views_ui/admin.inc
index a2d9fed..1b8b88f 100644
--- a/core/modules/views_ui/admin.inc
+++ b/core/modules/views_ui/admin.inc
@@ -255,7 +255,8 @@ function views_ui_standard_display_dropdown(&$form, FormStateInterface $form_sta
$form['override']['dropdown'] = [
'#type' => 'select',
- '#title' => t('For'), // @TODO: Translators may need more context than this.
+ // @TODO: Translators may need more context than this.
+ '#title' => t('For'),
'#options' => $display_dropdown,
];
if ($current_display->isDefaulted($section)) {
diff --git a/core/modules/views_ui/src/Form/Ajax/RearrangeFilter.php b/core/modules/views_ui/src/Form/Ajax/RearrangeFilter.php
index 67ddbe8..6e2114e 100644
--- a/core/modules/views_ui/src/Form/Ajax/RearrangeFilter.php
+++ b/core/modules/views_ui/src/Form/Ajax/RearrangeFilter.php
@@ -121,7 +121,8 @@ class RearrangeFilter extends ViewsFormBase {
],
];
- $form['remove_groups'][$id] = []; // to prevent a notice
+ // To prevent a notice.
+ $form['remove_groups'][$id] = [];
if ($id != 1) {
$form['remove_groups'][$id] = [
'#type' => 'submit',