Skip to content

Commit

Permalink
cs, phpdoc
Browse files Browse the repository at this point in the history
  • Loading branch information
mrubinsk committed Feb 5, 2015
1 parent 4717352 commit 7b75302
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions trean/lib/Bookmarks.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,12 +73,14 @@ public function newBookmark(array $properties, $crawl = true)
* @param integer $sortdir Direction of sort.
* @param integer $from Starting bookmark.
* @param integer $to Ending bookmark.
* @param string $userId List bookmarks for this userId. Defaults to
* $this->_userId.
*
* @return array An array of Trean_Bookmark objects.
*/
public function listBookmarks($sortby = 'title', $sortdir = 0, $from = 0, $count = 0, $userId = NULL)
public function listBookmarks($sortby = 'title', $sortdir = 0, $from = 0, $count = 0, $userId = null)
{
$values = array(is_null($userId) ? $this->_userId : $userId);
$values = array(empty($userId) ? $this->_userId : $userId);

$sql = 'SELECT bookmark_id, user_id, bookmark_url, bookmark_title, bookmark_description, bookmark_clicks, bookmark_http_status, favicon_url, bookmark_dt
FROM trean_bookmarks
Expand Down

0 comments on commit 7b75302

Please sign in to comment.