Skip to content

Commit

Permalink
[rector] Rector fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Oct 27, 2023
1 parent 87b5b69 commit 189f06e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 1 addition & 3 deletions src/Configuration/Extractor.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,7 @@ public function getConfigTreeBuilder(): \Symfony\Component\Config\Definition\Bui
$builder->getRootNode()
->validate()
->ifArray()
->then(function (array $item) {
return ExtractorConfigurationValidator::validate($item);
})
->then(fn(array $item) => ExtractorConfigurationValidator::validate($item))
->end()
->children()
->scalarNode('api_type')
Expand Down
4 changes: 1 addition & 3 deletions src/Configuration/Loader.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,7 @@ public function getConfigTreeBuilder(): \Symfony\Component\Config\Definition\Bui
$builder->getRootNode()
->validate()
->ifArray()
->then(function (array $item) {
return LoaderConfigurationValidator::validate($item);
})
->then(fn(array $item) => LoaderConfigurationValidator::validate($item))
->end()
->children()
->scalarNode('api_type')
Expand Down

0 comments on commit 189f06e

Please sign in to comment.