From 7a0d354529a46e1b9542714a29fcd4805d224eab Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Fri, 21 May 2021 08:30:43 +1200 Subject: [PATCH] Linter fixes --- .../GridFieldAddExistingAutocompleterTest.php | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/tests/php/Forms/GridField/GridFieldAddExistingAutocompleterTest.php b/tests/php/Forms/GridField/GridFieldAddExistingAutocompleterTest.php index 86ddcf22c..89b790f7f 100644 --- a/tests/php/Forms/GridField/GridFieldAddExistingAutocompleterTest.php +++ b/tests/php/Forms/GridField/GridFieldAddExistingAutocompleterTest.php @@ -147,7 +147,12 @@ class GridFieldAddExistingAutocompleterTest extends FunctionalTest $result = json_decode($response->getBody(), true); $this->assertEquals( ['Team 1', 'Team 2', 'Team 3', 'Team 4'], - array_map(function ($item) { return $item['label']; }, $result) + array_map( + function ($item) { + return $item['label']; + }, + $result + ) ); $component->setSearchList(Team::get()->sort('Name', 'DESC')); @@ -157,7 +162,12 @@ class GridFieldAddExistingAutocompleterTest extends FunctionalTest $result = json_decode($response->getBody(), true); $this->assertEquals( ['Team 4', 'Team 3', 'Team 2', 'Team 1'], - array_map(function ($item) { return $item['label']; }, $result) + array_map( + function ($item) { + return $item['label']; + }, + $result + ) ); }