diff --git a/api/modules/oauth/controllers/ClientsController.php b/api/modules/oauth/controllers/ClientsController.php index a23a8bc..3b42ffe 100644 --- a/api/modules/oauth/controllers/ClientsController.php +++ b/api/modules/oauth/controllers/ClientsController.php @@ -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 {