From a0beb36a010928cae59e4dfc9c20806b4ea099b7 Mon Sep 17 00:00:00 2001 From: Dendy Faist Date: Thu, 6 Feb 2025 15:24:04 +0900 Subject: [PATCH] fix: Make noteInfo interacting AnkiService methods private --- src/Service/AnkiService.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Service/AnkiService.php b/src/Service/AnkiService.php index cb369c0..f33cef9 100644 --- a/src/Service/AnkiService.php +++ b/src/Service/AnkiService.php @@ -41,7 +41,7 @@ class AnkiService /** Give an array of IDs, the note Infos are returned. if info for a given * doesn't exist, it is assigned to null instead of the default []. */ - public function getNotesInfo(array $noteIds): array + private function getNotesInfo(array $noteIds): array { $noteInfos = $this->request('notesInfo', ['notes' => $noteIds]); @@ -53,7 +53,7 @@ class AnkiService } /** Returns info form note given an ID, returns null if it doesn't exist */ - public function getNoteInfo(int $noteId): ?array + private function getNoteInfo(int $noteId): ?array { return $this->getNotesInfo([$noteId])[0]; }