Skip to content

Commit 55d5bb4

Browse files
Simplified some code
1 parent a8de079 commit 55d5bb4

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/AppBundle/Form/DataTransformer/TagArrayToStringTransformer.php

+1-3
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,7 @@ public function reverseTransform($string)
5454
return [];
5555
}
5656

57-
$names = array_unique(array_map(function($name) {
58-
return trim($name);
59-
}, explode(',', $string)));
57+
$names = array_unique(array_map('trim', explode(',', $string)));
6058

6159

6260
// Get the current tags and find the new ones that should be created.

0 commit comments

Comments
 (0)