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