From 39d7cad8b5391c8d3d1862cff7ea8fc8f0df2a63 Mon Sep 17 00:00:00 2001 From: ErickSkrauch Date: Wed, 10 Jun 2020 17:42:02 +0300 Subject: [PATCH] Fix CS --- api/modules/oauth/controllers/ClientsController.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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 {