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/Media.phpmodified+6-4
Changes to src/Models/Media.php
@@ -60,12 +60,14 @@ class Media
6060 return $this->all();
6161 }
6262
63 if (! is_int($id)) {
64 throw new InvalidFormatException();
65 }
66
6763 $ids = is_array($id) ? $id : func_get_args();
6864
65 foreach ($ids as $id) {
66 if (! is_int($id)) {
67 throw new InvalidFormatException();
68 }
69 }
70
6971 return $this->client->request('GET', 'media', ['media_ids' => $ids]);
7072 }
7173