includes/controller/admin_questions_controller.php
Showing 4 of 4 total issues
Function admin_questions
has a Cognitive Complexity of 36 (exceeds 5 allowed). Consider refactoring. Open
Open
function admin_questions() { global $user; if (! isset($_REQUEST['action'])) { $unanswered_questions_table = array();
- Read upRead up
Method admin_questions
has 86 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function admin_questions() { global $user; if (! isset($_REQUEST['action'])) { $unanswered_questions_table = array();
Avoid too many return
statements within this method. Open
Open
return error("No question found.", true);
Avoid too many return
statements within this method. Open
Open
return error("Incomplete call, missing Question ID.", true);