Skip to content

Commit

Permalink
SCA: minor code tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
kalessil authored and fabpot committed Jan 13, 2019
1 parent b7f63c9 commit 0868970
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions DependencyInjection/FrameworkExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -558,9 +558,7 @@ private function registerWorkflowConfiguration(array $config, ContainerBuilder $
$metadataStoreDefinition->replaceArgument(2, $transitionsMetadataDefinition);

// Create places
$places = array_map(function (array $place) {
return $place['name'];
}, $workflow['places']);
$places = array_column($workflow['places'], 'name');

// Create a Definition
$definitionDefinition = new Definition(Workflow\Definition::class);
Expand Down

0 comments on commit 0868970

Please sign in to comment.