Skip to content

Commit d0a7229

Browse files
committed
minor #29745 SCA: minor code tweaks (kalessil)
This PR was squashed before being merged into the 4.1 branch (closes #29745). Discussion ---------- SCA: minor code tweaks | Q | A | ------------- | --- | Branch? | 4.1 | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | n/a | License | MIT | Doc PR | n/a Eliminated a few excessive calls, tweaked query parameters sorting Commits ------- 8887f76b64 SCA: minor code tweaks
2 parents 083d40e + 0868970 commit d0a7229

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
@@ -563,9 +563,7 @@ private function registerWorkflowConfiguration(array $config, ContainerBuilder $
563563
$metadataStoreDefinition->replaceArgument(2, $transitionsMetadataDefinition);
564564

565565
// Create places
566-
$places = array_map(function (array $place) {
567-
return $place['name'];
568-
}, $workflow['places']);
566+
$places = array_column($workflow['places'], 'name');
569567

570568
// Create a Definition
571569
$definitionDefinition = new Definition(Workflow\Definition::class);

0 commit comments

Comments
 (0)