Code Duplication    Length = 3-3 lines in 2 locations

src/Comment/CommentController.php 2 locations

@@ 127-129 (lines=3) @@
124
        }
125
126
        $loggedInUser = $this->di->userController->getLoggedInUserId();
127
        if ($loggedInUser != $currentComment->user && !$this->di->session->has("admin")) {
128
            $this->di->response->redirect("comment/$postid");
129
        }
130
131
        $editForm = new ModelForm('edit-comment-form', $currentComment);
132
@@ 172-174 (lines=3) @@
169
        }
170
171
        $loggedInUser = $this->di->userController->getLoggedInUserId();
172
        if ($loggedInUser != $currentComment->user && !$this->di->session->has("admin")) {
173
            $this->di->response->redirect("comment/$postid");
174
        }
175
176
        if ($this->di->request->getMethod() == 'POST') {
177
            if ($this->di->request->getPost('delete') == 'delete') {