fossasia/engelsystem

View on GitHub
includes/controller/user_questions_controller.php

Summary

Maintainability
B
5 hrs
Test Coverage

Showing 2 of 2 total issues

Function user_questions has a Cognitive Complexity of 24 (exceeds 5 allowed). Consider refactoring.
Open

function user_questions() {
global $user;
if (! isset($_REQUEST['action'])) {
$open_questions = select_open_questions($user['UID']);
$answered_questions = select_ansd_questions($user['UID']);
Severity: Minor
Found in includes/controller/user_questions_controller.php - About 3 hrs to fix

Method user_questions has 42 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function user_questions() {
global $user;
if (! isset($_REQUEST['action'])) {
$open_questions = select_open_questions($user['UID']);
$answered_questions = select_ansd_questions($user['UID']);
Severity: Minor
Found in includes/controller/user_questions_controller.php - About 1 hr to fix
    Category
    Status