This commit is contained in:
ErickSkrauch 2020-06-10 17:42:02 +03:00
parent c18052c323
commit 39d7cad8b5
No known key found for this signature in database
GPG Key ID: 669339FCBB30EE0E

View File

@ -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 {