fix: Make noteInfo interacting AnkiService methods private

This commit is contained in:
Dendy 2025-02-06 15:24:04 +09:00
parent e8fefa064f
commit a0beb36a01
1 changed files with 2 additions and 2 deletions

View File

@ -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];
}