Skip to content

Commit 0868970

Browse files
kalessilfabpot
authored andcommitted
SCA: minor code tweaks
1 parent b7f63c9 commit 0868970

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

DependencyInjection/FrameworkExtension.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -558,9 +558,7 @@ private function registerWorkflowConfiguration(array $config, ContainerBuilder $
558558
$metadataStoreDefinition->replaceArgument(2, $transitionsMetadataDefinition);
559559

560560
// Create places
561-
$places = array_map(function (array $place) {
562-
return $place['name'];
563-
}, $workflow['places']);
561+
$places = array_column($workflow['places'], 'name');
564562

565563
// Create a Definition
566564
$definitionDefinition = new Definition(Workflow\Definition::class);

0 commit comments

Comments
 (0)