From d38c717d5003ebae126e4208dff0a90a45cc2e54 Mon Sep 17 00:00:00 2001 From: Orka Arnest CRUZE Date: Mon, 27 Nov 2023 16:33:47 +0100 Subject: [PATCH] =?UTF-8?q?chore:=20supprime=20code=20comment=C3=A9=20lors?= =?UTF-8?q?=20des=20tests?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Services/EntrepotApi/CatalogsApiService.php | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/src/Services/EntrepotApi/CatalogsApiService.php b/src/Services/EntrepotApi/CatalogsApiService.php index f155da6e..d9870e03 100644 --- a/src/Services/EntrepotApi/CatalogsApiService.php +++ b/src/Services/EntrepotApi/CatalogsApiService.php @@ -9,16 +9,14 @@ class CatalogsApiService extends AbstractEntrepotApiService */ public function getPublicCommunities(array $query = []): mixed { - $response = $this->request("GET", "catalogs/communities", [], $query, [], false, true, true); - - // TODO REACTIVER - // $contentRange = $response['headers']['content-range'][0]; - // $numPages = $this->getResultsPageCount($contentRange, $query['limit']); + $response = $this->request('GET', 'catalogs/communities', [], $query, [], false, true, true); + + $contentRange = $response['headers']['content-range'][0]; + $numPages = $this->getResultsPageCount($contentRange, $query['limit']); - $numPages = 4; return [ 'communities' => $response['content'], - 'numPages' => $numPages + 'numPages' => $numPages, ]; } -} \ No newline at end of file +}