Code Duplication    Length = 3-3 lines in 2 locations

src/Comment/CommentController.php 2 locations

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