Skip to content

Commit

Permalink
fix cs
Browse files Browse the repository at this point in the history
  • Loading branch information
chalasr committed Oct 5, 2021
1 parent df405a8 commit 464dfa8
Showing 1 changed file with 11 additions and 13 deletions.
24 changes: 11 additions & 13 deletions src/Command/ListClientsCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,19 +87,17 @@ private function getFindByCriteria(InputInterface $input): ClientFilter
/** @var list<string> $scopeStrings */
$scopeStrings = $input->getOption('scope');

return
ClientFilter
::create()
->addGrantCriteria(...array_map(static function (string $grant): Grant {
return new Grant($grant);
}, $grantStrings))
->addRedirectUriCriteria(...array_map(static function (string $redirectUri): RedirectUri {
return new RedirectUri($redirectUri);
}, $redirectUriStrings))
->addScopeCriteria(...array_map(static function (string $scope): Scope {
return new Scope($scope);
}, $scopeStrings))
;
return ClientFilter::create()
->addGrantCriteria(...array_map(static function (string $grant): Grant {
return new Grant($grant);
}, $grantStrings))
->addRedirectUriCriteria(...array_map(static function (string $redirectUri): RedirectUri {
return new RedirectUri($redirectUri);
}, $redirectUriStrings))
->addScopeCriteria(...array_map(static function (string $scope): Scope {
return new Scope($scope);
}, $scopeStrings))
;
}

private function drawTable(InputInterface $input, OutputInterface $output, array $clients): void
Expand Down

0 comments on commit 464dfa8

Please sign in to comment.