mirror of
https://github.com/elyby/accounts.git
synced 2024-12-23 22:00:06 +05:30
Fix CS
This commit is contained in:
parent
c18052c323
commit
39d7cad8b5
@ -136,11 +136,8 @@ class ClientsController extends Controller {
|
||||
|
||||
/** @var OauthClient[] $clients */
|
||||
$clients = $account->getOauthClients()->orderBy(['created_at' => SORT_ASC])->all();
|
||||
$result = array_map(function(OauthClient $client) {
|
||||
return $this->formatClient($client);
|
||||
}, $clients);
|
||||
|
||||
return $result;
|
||||
return array_map(fn(OauthClient $client): array => $this->formatClient($client), $clients);
|
||||
}
|
||||
|
||||
private function formatClient(OauthClient $client): array {
|
||||
|
Loading…
Reference in New Issue
Block a user