diff options
author | Bharat Mediratta <bharat@menalto.com> | 2010-11-27 19:48:16 -0800 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2010-11-27 19:48:16 -0800 |
commit | f91819441c0f899f34c02264f9cbfdc6281980b9 (patch) | |
tree | bc060fc8010ecb576df848b9fc6b9725179893d0 | |
parent | d2be26e407aeb620082bcad2d5a45272868b38a1 (diff) |
Tighten up the phpDoc for get().
-rw-r--r-- | modules/gallery/helpers/items_rest.php | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/modules/gallery/helpers/items_rest.php b/modules/gallery/helpers/items_rest.php index da062819..dd190e9d 100644 --- a/modules/gallery/helpers/items_rest.php +++ b/modules/gallery/helpers/items_rest.php @@ -33,11 +33,9 @@ class items_rest_Core { * * type=<comma separate list of photo, movie or album> * limit the type to types in this list. eg, "type=photo,movie" - * - * also limits the types returned in the member collections (same - * behaviour as item_rest) - * - * ignored if ancestors_for is set. + * Also limits the types returned in the member collections (same + * behaviour as item_rest). + * Ignored if ancestors_for is set. */ static function get($request) { $items = array(); @@ -53,8 +51,8 @@ class items_rest_Core { if (!access::can("view", $item)) { continue; } - - if (empty($types) || in_array($item->type, $types)) { + + if (empty($types) || in_array($item->type, $types)) { $items[] = items_rest::_format_restful_item($item, $types); } } |