ReviewOS

also looking at this

meemalabs/meema-client-php

add test case

#37
Merged glennmichael123 wants to merge test-environment into main
8 files +106 -88
src/Models/Folder.phpmodified+6-4
Changes to src/Models/Folder.php
@@ -58,12 +58,14 @@ class Folder
5858 return $this->all();
5959 }
6060
61 if (! is_int($id)) {
62 throw new InvalidFormatException();
63 }
64
6561 $ids = is_array($id) ? $id : func_get_args();
6662
63 foreach ($ids as $id) {
64 if (! is_int($id)) {
65 throw new InvalidFormatException();
66 }
67 }
68
6769 return $this->client->request('GET', 'folders', ['folder_ids' => $ids]);
6870 }
6971