Skip to content
Browse files

Tighten up the phpDoc for get().

  • Loading branch information...
1 parent d2be26e commit f91819441c0f899f34c02264f9cbfdc6281980b9 @bharat bharat committed Nov 27, 2010
Showing with 5 additions and 7 deletions.
  1. +5 −7 modules/gallery/helpers/items_rest.php
View
12 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 @@ static function get($request) {
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);
}
}

0 comments on commit f918194

Please sign in to comment.
Something went wrong with that request. Please try again.