Conditions | 2 |
Paths | 2 |
Total Lines | 14 |
Lines | 14 |
Ratio | 100 % |
Changes | 0 |
1 | <?php |
||
40 | View Code Duplication | public function postDeleteAction(int $examID, int $questionID) |
|
41 | { |
||
42 | $delModel = new QuestionDeleteModel($this->get('dbh')); |
||
43 | |||
44 | if ($delModel->delete($questionID)) { |
||
45 | $this->setMessage('success', 'Usunięto pomyślnie!'); |
||
46 | $this->redirect('/admin/exam/edit/'.$examID); |
||
47 | |||
48 | return; |
||
49 | } |
||
50 | |||
51 | $this->setMessage('warning', 'Coś się zepsuło!'); |
||
52 | $this->redirect('/admin/exam/edit/'.$examID.'/question/del/'.$questionID); |
||
53 | } |
||
54 | } |
||
55 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.