Permalink
Browse files

clean up codes

  • Loading branch information...
nibsirahsieu committed Jun 7, 2011
1 parent ca1c0f5 commit d2105aeee31186dbc6fcf239963faed25dd71c38
View
@@ -1,6 +1,6 @@
/**
- * function to retrieve approved level 1 comments
+ * function to retrieve approved comments level 1
* @param $limit max record to retrieve
* @param $page page number
* @return mixed
@@ -58,4 +58,3 @@ public function getComments($limit = 5, $page = null)
return $query->limit($limit)->find();
}
}
-
@@ -3,7 +3,8 @@ class PluginsfNestedCommentMailQueueQuery extends BasesfNestedCommentMailQueueQu
{
public function spooledMessages()
{
- return $this->filterBySuccess(false)
- ->filterByAttempts(sfNestedCommentConfig::getMaxAttempts(), Criteria::LESS_EQUAL);
+ return $this
+ ->filterBySuccess(false)
+ ->filterByAttempts(sfNestedCommentConfig::getMaxAttempts(), Criteria::LESS_EQUAL);
}
}
@@ -13,7 +13,8 @@ public function model($object)
$commentableModel = $object['commentable_model'];
$commentableId = $object['commentable_id'];
}
- return $this->filterByCommentableModel($commentableModel)
- ->filterByCommentableId($commentableId);
+ return $this
+ ->filterByCommentableModel($commentableModel)
+ ->filterByCommentableId($commentableId);
}
}
@@ -12,8 +12,7 @@ public function executeRecentComments()
public function executeShowComments(sfWebRequest $request)
{
- $page = sfNestedCommentConfig::isPagingEnabled() ? $request->getParameter('comment-page', 1) : null;
$this->comments = sfNestedCommentTools::getComments($this->object, $request);
$this->commentForm = sfNestedCommentTools::createCommentForm($this->object);
}
-}
+}

0 comments on commit d2105ae

Please sign in to comment.