Skip to content

Commit

Permalink
minor #29745 SCA: minor code tweaks (kalessil)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
fabpot committed Jan 13, 2019
2 parents 083d40e + 0868970 commit d0a7229
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 @@ -563,9 +563,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 d0a7229

Please sign in to comment.