Showing 7 of 7 total issues
Function user_news
has a Cognitive Complexity of 15 (exceeds 5 allowed). Consider refactoring. Open
function user_news() { global $DISPLAY_NEWS, $privileges, $user; $html = '<div class="col-md-12"><h1>' . news_title() . '</h1>' . msg();
- Read upRead up
Method user_news
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
function user_news() { global $DISPLAY_NEWS, $privileges, $user; $html = '<div class="col-md-12"><h1>' . news_title() . '</h1>' . msg();
Method user_news_comments
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
function user_news_comments() { global $user; $html = '<div class="col-md-12"><h1>' . user_news_comments_title() . '</h1>'; if (isset($_REQUEST["nid"]) && preg_match("/^[0-9]{1,}$/", $_REQUEST['nid']) && count_news_by_id($_REQUEST['nid']) > 0) {
Function user_news_comments
has a Cognitive Complexity of 10 (exceeds 5 allowed). Consider refactoring. Open
function user_news_comments() { global $user; $html = '<div class="col-md-12"><h1>' . user_news_comments_title() . '</h1>'; if (isset($_REQUEST["nid"]) && preg_match("/^[0-9]{1,}$/", $_REQUEST['nid']) && count_news_by_id($_REQUEST['nid']) > 0) {
- Read upRead up
Function user_meetings
has a Cognitive Complexity of 10 (exceeds 5 allowed). Consider refactoring. Open
function user_meetings() { global $DISPLAY_NEWS, $privileges, $user; $html = '<div class="col-md-12"><h1>' . meetings_title() . '</h1>' . msg();
- Read upRead up
Similar blocks of code found in 2 locations. Consider refactoring. Open
for ($i = 0; $i < $dis_rows; $i ++) { if (isset($_REQUEST['page']) && $i == $_REQUEST['page']) $html .= '<li class="active">'; elseif (! isset($_REQUEST['page']) && $i == 0) $html .= '<li class="active">';
- Read upRead up
Similar blocks of code found in 2 locations. Consider refactoring. Open
for ($i = 0; $i < $dis_rows; $i ++) { if (isset($_REQUEST['page']) && $i == $_REQUEST['page']) $html .= '<li class="active">'; elseif (! isset($_REQUEST['page']) && $i == 0) $html .= '<li class="active">';
- Read upRead up