includes/controller/user_questions_controller.php
Showing 2 of 2 total issues
Function user_questions
has a Cognitive Complexity of 24 (exceeds 5 allowed). Consider refactoring. Open
Open
function user_questions() { global $user; if (! isset($_REQUEST['action'])) { $open_questions = select_open_questions($user['UID']); $answered_questions = select_ansd_questions($user['UID']);
- Read upRead up
Method user_questions
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function user_questions() { global $user; if (! isset($_REQUEST['action'])) { $open_questions = select_open_questions($user['UID']); $answered_questions = select_ansd_questions($user['UID']);