src/Comment/CommentController.php
Method editComment
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function editComment($postid)
{
$actionID = (int)$this->di->request->getGet("id");
$currentComment = $this->comments->findSoft('id', $actionID);
if (!$currentComment) {
Method replyComment
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function replyComment($postid)
{
$loggedInUser = $this->di->userController->getLoggedInUserId();
if (is_null($loggedInUser)) {
$this->di->response->redirect("comment/$postid");
Method deleteComment
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function deleteComment($postid)
{
$actionID = (int)$this->di->request->getGet("id");
$currentComment = $this->comments->findSoft('id', $actionID);
if (!$currentComment) {