summaryrefslogtreecommitdiffstats
path: root/core/modules/views_ui
diff options
context:
space:
mode:
authorNathaniel Catchpole2017-10-10 14:43:06 (GMT)
committerNathaniel Catchpole2017-10-10 14:43:06 (GMT)
commitf659d6ca8e667446ce8033ef3ca8b0aed99f95f3 (patch)
treeca331d629f752170be5fa225fde1a94aa0d92b25 /core/modules/views_ui
parent942b70b4dda3cf5c2d4a87ad745d40ace24850d9 (diff)
Issue #2901726 by mfernea, gmario, finn.lewis, robertoperuzzo, rachel_norfolk: Fix 'Squiz.Functions.MultiLineFunctionDeclaration' coding standard
Diffstat (limited to 'core/modules/views_ui')
-rw-r--r--core/modules/views_ui/src/Form/Ajax/AddHandler.php2
-rw-r--r--core/modules/views_ui/tests/src/Functional/DisplayPathTest.php2
-rw-r--r--core/modules/views_ui/tests/src/FunctionalJavascript/ViewsListingTest.php2
3 files changed, 3 insertions, 3 deletions
diff --git a/core/modules/views_ui/src/Form/Ajax/AddHandler.php b/core/modules/views_ui/src/Form/Ajax/AddHandler.php
index 0a04000..ec0c655 100644
--- a/core/modules/views_ui/src/Form/Ajax/AddHandler.php
+++ b/core/modules/views_ui/src/Form/Ajax/AddHandler.php
@@ -176,7 +176,7 @@ class AddHandler extends ViewsFormBase {
$view->getStandardButtons($form, $form_state, 'views_ui_add_handler_form', $this->t('Add and configure @types', ['@types' => $ltitle]));
// Remove the default submit function.
- $form['actions']['submit']['#submit'] = array_filter($form['actions']['submit']['#submit'], function($var) {
+ $form['actions']['submit']['#submit'] = array_filter($form['actions']['submit']['#submit'], function ($var) {
return !(is_array($var) && isset($var[1]) && $var[1] == 'standardSubmit');
});
$form['actions']['submit']['#submit'][] = [$view, 'submitItemAdd'];
diff --git a/core/modules/views_ui/tests/src/Functional/DisplayPathTest.php b/core/modules/views_ui/tests/src/Functional/DisplayPathTest.php
index af2c4e2..7291dc2 100644
--- a/core/modules/views_ui/tests/src/Functional/DisplayPathTest.php
+++ b/core/modules/views_ui/tests/src/Functional/DisplayPathTest.php
@@ -166,7 +166,7 @@ class DisplayPathTest extends UITestBase {
unset($menu_options['@attributes']);
// Convert array to make the next assertion possible.
- $menu_options = array_map(function($element) {
+ $menu_options = array_map(function ($element) {
return $element->getText();
}, $menu_options);
diff --git a/core/modules/views_ui/tests/src/FunctionalJavascript/ViewsListingTest.php b/core/modules/views_ui/tests/src/FunctionalJavascript/ViewsListingTest.php
index 03325ce..cab99bd 100644
--- a/core/modules/views_ui/tests/src/FunctionalJavascript/ViewsListingTest.php
+++ b/core/modules/views_ui/tests/src/FunctionalJavascript/ViewsListingTest.php
@@ -118,7 +118,7 @@ class ViewsListingTest extends JavascriptTestBase {
* @return array
*/
protected function filterVisibleElements($elements) {
- $elements = array_filter($elements, function($element) {
+ $elements = array_filter($elements, function ($element) {
return $element->isVisible();
});
return $elements;